yunnanpl / esp32_python_eq3

Bluetooth bridge between EQ3 thermostat and WLAN network, using ESP32, micropython and mqtt.
GNU General Public License v3.0
16 stars 1 forks source link

Issue with threads in Micropython 1.21 #28

Open yunnanpl opened 11 months ago

yunnanpl commented 11 months ago

So, doing last fixes I decided to update micropython to the newer version. My other solution (gas counter reader), works flawlessly with 1.21 and has a huge amount of free memory available (even if it can hold (in theory) 5-10 years of hourly gas readouts).

Therefore I decided to update the EQ3 ESP32 too... while updating to 1.20 there were issues with memory allocation, so I cut down some variables and simplified some functions. So 1.20 is working now. Now, while updating to 1.21 the script won't start... there is an error that the thread cannot be started and that is all. I will look at this issue later.

Therefore, at the moment it is not recommended to update to micropython 1.21, but 1.19 and 1.20 work fine with newest version (beta, not released) of the script.

EDIT: The new version 86ef4fb works fine with micropython 1.20. But 1.21 has memory and threads issues, so I need to work on it.