You can notice that everything is working but not the last "message sent".
The other strange thing that happends is that while you would think that message has not been sent(and usually on another mqtt client when message is published the client get immediately updated) if from another mqtt client i unsubscribe and subscribe again i get that message there.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi Ollie,
thanks for your reply. So this is my new code:
everything is perfectly working before saving...
This is the correct and expected reponse:
as soon as i save() on the console, unplug and replug usb i see this in the console:
You can notice that everything is working but not the last "message sent".
The other strange thing that happends is that while you would think that message has not been sent(and usually on another mqtt client when message is published the client get immediately updated) if from another mqtt client i unsubscribe and subscribe again i get that message there.
so qhat can it be??!!