changed topic and also added the -q 0 flag to mosquitto_sub
This commit is contained in:
@@ -28,7 +28,7 @@ log() {
|
||||
log "INFO" "--- ES Event Daemon Started ---"
|
||||
|
||||
# --- Main Listener Loop ---
|
||||
mosquitto_sub -h 127.0.0.1 -p 1883 -t "$TOPIC" | while IFS="=" read -r key value
|
||||
mosquitto_sub -h 127.0.0.1 -p 1883 -q 0 -t "$TOPIC" | while IFS="=" read -r key value
|
||||
do
|
||||
# 1. Clean Carriage Returns from Windows-style line endings
|
||||
value=$(echo "$value" | tr -d '\r')
|
||||
|
||||
Reference in New Issue
Block a user