Using mqtt_as on ESP vs PicoW?
Posted: Sat Aug 13, 2022 5:59 pm
Using mqtt_as on ESP vs PicoW? To test the mqtt_as implementation on PicoW, it was pretty straight-forward, just upload the mqtt_as.py and config.py files to PicoW file system (via Thonny). And use.
I tried the same with an ESP module with 1MB, and sure enough, memory error on module load of the MQTTClient. I recalled the mqtt_as module is to big to compile directly, so the question is how do I get it in a usable state on an ESP module? It is not core to MicroPython downloadable images, right? So I need to compile/freeze it?
Just to test I tried the same with Thonny download of micropython-mqtt-async, and it the same basic wall, memory error when I tried to load the micropython-mqtt-async module.
I tried the same with an ESP module with 1MB, and sure enough, memory error on module load of the MQTTClient. I recalled the mqtt_as module is to big to compile directly, so the question is how do I get it in a usable state on an ESP module? It is not core to MicroPython downloadable images, right? So I need to compile/freeze it?
Just to test I tried the same with Thonny download of micropython-mqtt-async, and it the same basic wall, memory error when I tried to load the micropython-mqtt-async module.