ystrem wrote:Great work, it will by super if it would be implemented into nodemcu. The I can use it for control and measure.
Compiled etc.. done. Running - the serial line says "station idle" and "Station_no_ap_found". I've a basic idea of how to use MQTT - had an arduino implementation once.. I used IBMs host.. and from the mobile phone I could send messages to my board.. but here, I've no idea how to make a start.
So I assume this has to have an address and port... and to be any use has to talk to my router?? But... is there any info I missed as to what to do next? It's just sitting there minding it's own business..???
Please change the ssid and password, mqtt host, port... in user_config.h, compile, flash and run it again
@all
This demo repository can subscribe 2 topic and if you public any message to that channel (/yourchipid/data, /yourchipid/ota) you can see the message data in terminal, please see in: deliver_publish function. If you want to publish a message, you can call the function: MQTT_Pub
If you can't run your own broker, you can try cloudmqtt, using chrome mqtt client for test:
https://chrome.google.com/webstore/deta ... objm?hl=en
@zeroday @ystrem
Nodemcu is the perfect way for script run on MCU, MQTT is the best way I found to connected any IoTs device together. With pub/sub method, any device connect to broker, and then, they can talk together, like "logical mesh".
Happy new year