Code: [Local Link Removed for Guests]
' MQTT test program
' Using Helmuts test server
print mqtt.setup("http://192.168.0.9",1883)
print mqtt.connect("ccc", "ddd") ' No login / pass required
pause 100 / it doesn't help
print mqtt.subscribe("/Power") ' subscribe to the topic / my Power, not AnnexTest
pause 100 / it doesn't help
onmqtt mqtt_msg
for z = 1 to 10
' send messages to the topic AnnexTest
print mqtt.publish("/AnnexTest", "Annex"+str$(z))
pause 100
next z
print ramfree
wait
' receive messages from the server
mqtt_msg:
print "TOPIC : "; mqtt.topic$
print "MESSAGE: "; mqtt.message$
return
ESP has Annex32 CAN 1.52.9 LFSProgram Running<\r><\n>
0<\r><\n>
0<\r><\n>
-1<\r><\n>
what i make wrong?