Nov-04-2021, 12:53 AM
I'm not sure I understand the environment, but I think you can modify them before you hand the config off to the client. Are you using it something like this?
from mqtt_as import MQTTClient, config ... client = MQTTClient(config)If so, you can modify them before handing to the client.
from mqtt_as import MQTTClient, config ssid, password = get_from_wifimgr() config["ssid"] = ssid config["ssid_pw"] = password client = MQTTClient(config)