-->
Page 1 of 3

MQTT

PostPosted: Sat Mar 25, 2017 12:54 pm
by georges
IOT is MQTT.
It is the only missing things for ESP BASIC in my point of view.

Best regards
Georges

Re: MQTT

PostPosted: Tue Apr 25, 2017 3:59 am
by scratchrobot
I agree, the only thing missing is MQTT.

Re: MQTT

PostPosted: Tue Apr 25, 2017 3:07 pm
by scratchrobot
MQTT is working but not documented yet?
This is working for me:

Code: Select allmyMSG = "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


But when i use my local MQTT server it doesn't work?

Code: Select allmqtt.setup("192.168.1.240")

Re: MQTT

PostPosted: Tue Apr 25, 2017 4:22 pm
by Mmiscool
I put that out for testing a while ago. It would have been under general or the announcements. It is not in the docs as I am not too familiar with mqtt and did not have the ability to do proper testing.