peterhinch / micropython-mqtt

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

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

Open gmrza opened 1 year ago

gmrza commented 1 year 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 1 year ago

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

peterhinch commented 1 year ago

Apologies, this is now fixed here.