summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2025-12-20 13:23:17 +0100
committerxengineering <me@xengineering.eu>2025-12-20 13:23:17 +0100
commitfaf9fb7a8c5e8b31e9c1104b42d7e550e986ca61 (patch)
tree039692768f1d6271f9b4ae2e01456f1c829db12a /main.go
parent2b4b4235d692b32f5dc18e1fda39917365857336 (diff)
downloadsia-server-faf9fb7a8c5e8b31e9c1104b42d7e550e986ca61.tar
sia-server-faf9fb7a8c5e8b31e9c1104b42d7e550e986ca61.tar.zst
sia-server-faf9fb7a8c5e8b31e9c1104b42d7e550e986ca61.zip
Raise to QoS 1
This ensures the state updates reach the broker. QoS 2 is not required since multiple reception of the same state will not make a difference.
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index eae80ba..06ace4a 100644
--- a/main.go
+++ b/main.go
@@ -17,7 +17,7 @@ const (
BROKER = `tcp://127.0.0.1:1883`
CLIENT_ID = `siaserver`
TOPIC_PREFIX = `sia`
- QOS = byte(0)
+ QOS = byte(1)
RETAINED = true
MQTT_CONNECT_TIMEOUT = time.Second * 5
MQTT_DISCONNECT_TIMEOUT_US = 500