summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2025-12-20 13:18:55 +0100
committerxengineering <me@xengineering.eu>2025-12-20 13:18:55 +0100
commit2b4b4235d692b32f5dc18e1fda39917365857336 (patch)
tree1ccbc752d2efbfd469d632db0d8bd33477d68669 /main.go
parentb58d415169180e58c0661a09c97d311e2eb0c96a (diff)
downloadsia-server-2b4b4235d692b32f5dc18e1fda39917365857336.tar
sia-server-2b4b4235d692b32f5dc18e1fda39917365857336.tar.zst
sia-server-2b4b4235d692b32f5dc18e1fda39917365857336.zip
Switch ClientId to `siaserver`
The old version `sia-server` was problematic since the MQTT specification [1] ensures only this list of valid characters: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ For every other character the broker might support this or not. [1]: https://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718031
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 d4ef33b..eae80ba 100644
--- a/main.go
+++ b/main.go
@@ -15,7 +15,7 @@ import (
const (
OPENCCU = `http://127.0.0.1:8080`
BROKER = `tcp://127.0.0.1:1883`
- CLIENT_ID = `sia-server`
+ CLIENT_ID = `siaserver`
TOPIC_PREFIX = `sia`
QOS = byte(0)
RETAINED = true