I see a strange behaviour on the mqtt_winc1500 example from Adafruit MQTT library.
The example works fine as is, and I tried to modify it a little so that I only publish, not subscribe.
I see that if I comment out the line
Code: Select all
mqtt.subscribe(&onoffbutton);
If I leave this line, it works good from the first message.
Is this line important even if I don't want to subscribe?
Thank you!