https://github.com/miketeachman/micropy ... tt-esp8266
However, as far as I can understand that platform will not retain messages. I would like a remote ESP32 to connect once a day to get any new operating conditions.
I can get HiveMQ Cloud to work using mqtt cli which is installed on my laptop, for example:
Code: Select all
mqtt sub -h 660b2377cb7bxxxxxxxx5fbeef99a9e4.s1.eu.hivemq.cloud -p 8883 -s -u davef -pw -t 'wateringtimer1'
Code: Select all
client = MQTTClient(client_id, mqtt_server)
When I add port=8883 like this:
Code: Select all
client = MQTTClient(client_id, mqtt_server, port=8883, user=b'davef', passwood = xyz)
Code: Select all
File "umqtt/simple.py", line 108, in connect
IndexError: bytes index out of range
Code: Select all
resp = self.sock.read(4)
I am using umqqt.robust
Based on the mmqt cli script I assume that I don't need to worry about certificates.
Sure would appreciate a pointer to what I am missing out here.