4refr0nt / iot-manager-demo

Demo sketches for IoT Manager https://play.google.com/store/apps/details?id=ru.esp8266.iotmanager
MIT License
66 stars 31 forks source link

Unexpected message arrived for topics without leading / #15

Closed sgofferj closed 4 years ago

sgofferj commented 7 years ago

When using a topic prefix without a leading "/", e.g. "IoTmanager" instead of "/IoTmanager", nothing happens on the dashboard and the log shows "Unexpected message arrived".

It is allowed to use a leading forward slash in MQTT, for example /myhome/groundfloor/livingroom. But that introduces a unnecessary topic level with a zero character at the front. That should be avoided, because it doesn’t provide any benefit and often leads to confusion. (http://www.hivemq.com/blog/mqtt-essentials-part-5-mqtt-topics-best-practices)

4refr0nt commented 4 years ago

Prefix issue fixed in 2.1.0 version