#!/bin/bash source "$(dirname "$0")/../.env" echo "Testing MQTT connection to $MQTT_BROKER:$MQTT_PORT" echo "Publishing test message..." mosquitto_pub -h "$MQTT_BROKER" -p "$MQTT_PORT" -t "infoscreen/test" -m "Hello from Pi development setup" echo "Subscribing to test topic (press Ctrl+C to stop)..." mosquitto_sub -h "$MQTT_BROKER" -p "$MQTT_PORT" -t "infoscreen/test"