It's been a year and I didn't work on this and I completely forgot how I did it at the time. I wanted to refresh knowledge and got stuck with flashing and pushing the code. Sorry for the inconvenience.
After a few hours of reading the documentation and examination I managed to make my esp8266 to connect to wifi and mqtt...
I have a new questions since you answered my previous question.
I do not understand the concept how espruino works. I am used to Arduino loop function and I can't get my head around how it works on espruino? How can I achieve the same behaviour in espruino?
I guess that this code snippet listens for message 'connected' from mqtt broker and then executes the subscription to certain topics?
mqtt.on('connected', function(pub) {//subscribe to topics});
Can you please point me how to define pins for digital read and write? I am unable to find the documentation for that?
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 Robin,
It's been a year and I didn't work on this and I completely forgot how I did it at the time. I wanted to refresh knowledge and got stuck with flashing and pushing the code. Sorry for the inconvenience.
After a few hours of reading the documentation and examination I managed to make my esp8266 to connect to wifi and mqtt...
I have a new questions since you answered my previous question.
I guess that this code snippet listens for message 'connected' from mqtt broker and then executes the subscription to certain topics?
Can you please point me how to define pins for digital read and write? I am unable to find the documentation for that?
Thanks :)