I am trying to run the mqtt demo on the OpenMV cam H7 using the given examples and while connecting to the server and sending the message it gives me the following output leading to OSError -12:
Trying to connect… (may take a while)…
Running in Station mode…
[-56, 2, ‘MyWiFi’, ‘f8:f0:05:a3:05:46’, ‘192.168.54.65’]Traceback (most recent call last):
File “”, line 22, in
File “mqtt.py”, line 77, in connect
OSError: -12
I tried resetting the device using pyb.hard_reset(), but it didn’t work.
I am unable to find any solution for this. What can I do to debug this?