peterhinch / micropython-mqtt

A 'resilient' asynchronous MQTT driver. Recovers from WiFi and broker outages.
MIT License
549 stars 116 forks source link

TypeError: object with buffer protocol required #121

Closed beetlegigg closed 10 months ago

beetlegigg commented 10 months ago

I just downloaded the latest nightly build of mp for my picoW and the latest mqtt_as from github. I amended the mqtt_local.py for my SSID, PW and Server (all in ' '), and ran the clean.py test as a quick check that all is well. But I got the following: Traceback (most recent call last): File "", line 66, in File "asyncio/core.py", line 1, in run File "asyncio/core.py", line 1, in run_until_complete File "asyncio/core.py", line 1, in run_until_complete File "", line 42, in main File "/lib/mqtt_as.py", line 627, in connect File "/lib/mqtt_as.py", line 595, in wifi_connect TypeError: object with buffer protocol required

Which I think is to do with numbers instead of strings. I double checked that the SSID, PW, and Server are all strings. Perhaps something wrong in the nightly build ?

beetlegigg commented 10 months ago

OMG, I time to retire to bed and give up for the day. I changed the local_mqtt.py but forgot to save it.... All is well - issue closed.