MQTT
Posted: Sat Mar 25, 2017 12:54 pm
IOT is MQTT.
It is the only missing things for ESP BASIC in my point of view.
Best regards
Georges
It is the only missing things for ESP BASIC in my point of view.
Best regards
Georges
-->
Open Community Forum for ESP8266, Come share Arduino and IoT (Internet of Things)
https://www.esp8266.com/
myMSG = "ESPTest"
mqtt.setup("broker.mqttdashboard.com")
'mqtt.setup("broker.192.168.1.240")
mqttbranch [newmsg]
mqtt.subscribe("mmiscool")
[reset.window]
cls
textbox myMSG
button "Send", [send]
button "Clear the screen",[reset.window]
wait
[send]
mqtt.publish("mmiscool",myMSG)
wait
[newmsg]
print mqtt.msg()
wait
mqtt.setup("192.168.1.240")