Closed bthome closed 6 years ago
The get_OrderedDict
function is used merely to keep the STDOUT printout in order, and in a practical sense can be omitted entirely.
Therefor, you can delete the get_OrderedDict
function and bypass the function wherever it's used to save some memory.
Also, for your information, I personally have gradually migrate to ESP32, which has more memory and less constrain. Code for ESP32 is at : https://github.com/Wei1234c/MQTT_bridged_workers
Hey. Thanks for getting back to me. I resolved the issue (out of memory heap space allocation). I ended up compiling the Micropython firmware and "froze the bytecode" for your implementation. I now have plenty of room to allocate for other custom modules\scripts that I plan to integrate in.
I look forward to any new projects that you have coming up...and if you find any gotchas I should keep my eye on please let me know.
Thanks, Brian
Close for now.
Thank you for contributing this. I have been working with ESP8266 sensors for a while and came across your project and wanted to try and incorporate it into my Home Automation setup.
I did get it working and it does the basics (blink), however when I try to upload a script for execution I run into memory constraint problems. It looks like 30K is allocated and only 5k is available. When it tries to upload the file it fails on allocating ~800 bytes. I'm compiled to .MPY and get the same error.
The failure occurs on the return of the OrderedDict.
Can you recommend possible next steps to resolve?