peterhinch / micropython-mqtt

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

config['gateway'] not defined - on Pi Pico W #117

Open gmrza opened 11 months ago

gmrza commented 11 months ago

After pulling the latest version this morning, I discovered a problem that config['gateway'] is not set. I am running on a Pi Pico W, and get the following error when starting up:

Traceback (most recent call last): File "", line 3, in File "mqtt_flowserv01.py", line 533, in File "mqtt_as.py", line 551, in init File "mqtt_as.py", line 171, in init KeyError: gateway

adding the following line to my code works around the problem: config['gateway'] = None

ebolisa commented 11 months ago

Could you show line 3? And what’s mqtt_flowserv01.py? Could the error be related to the changes you made?

peterhinch commented 11 months ago

Apologies, this is now fixed here.