Closed fmatray closed 4 years ago
I tried with the example in wiki for the MKR 1010, including the delay(1000).
I want to subscribe to several topics
client.subscribe("octoPrint/temperature/#"); // 2 topics tool0 and bed
client.subscribe("octoPrint/event/PrinterStateChanged");
client.subscribe("octoPrint/event/PowerOn");
client.subscribe("octoPrint/event/PowerOff");
client.subscribe("octoPrint/progress/printing");
I tried several configurations :
the temperature only : it works as long as it receive frequent datas. Else I get disconnections every loop.
15:52:17.406 -> connected to WiFi!
15:52:17.406 ->
15:52:17.406 -> connecting to broker...
15:52:17.444 -> Connected to MQTT
15:52:17.444 -> incoming: octoPrint/temperature/tool0 - {"_timestamp": 1592142736, "actual": 24.06, "target": 0.0}
15:52:17.444 -> incoming: octoPrint/temperature/bed - {"_timestamp": 1592142736, "actual": 44.71, "target": 0.0}
15:52:18.796 -> checking wifi...
15:52:18.796 -> connected to WiFi!
15:52:18.796 ->
15:52:18.796 -> connecting to broker...
15:52:18.796 -> Connected to MQTT
15:52:18.796 -> incoming: octoPrint/temperature/tool0 - {"_timestamp": 1592142738, "actual": 23.59, "target": 0.0}
15:52:18.796 -> incoming: octoPrint/temperature/bed - {"_timestamp": 1592142736, "actual": 44.71, "target": 0.0}
15:52:19.924 -> checking wifi...
15:52:19.924 -> connected to WiFi!
If I try to add another topic, it loops for ever : Connecting, retrieving the same MQTT message and disconnection.
Is it possible the message is bigger than the default buffer size of 128 bytes?
Yes and the retain flag
Hello, I tried the example ArduinoWiFi101 on a MKR 1010 Wifi. I just changed the driver to WifiNina. When receiving fast messages, the client disconnects and reconnects.
I this is the subscriptions :
Any clue about this problem ? Thanks a lot.