Search found 84 matches
- Sun Sep 06, 2015 12:39 am
- Forum: Other Boards
- Topic: ESP8266 sockets - memory being all used up. FIXED
- Replies: 4
- Views: 5400
ESP8266 sockets - memory being all used up. FIXED
If I call this in a loop: def doit(arg): soc = esp.socket() soc.__del__() gc.collect() And call gc.collect() in my outer loop, the memory is slowly used up. Is this expected? Should I be trying to add code to the del so it manually marks some of the allocated elements in the socket free? Are there a...
- Sat Sep 05, 2015 12:36 am
- Forum: Other Boards
- Topic: NodeMCU V2 Dev. Board
- Replies: 3
- Views: 5442
Re: NodeMCU V2 Dev. Board
It would be best to use the ESP scheduler for this. It has to service the wifi in the background so you can't really spin in a loop for 1 second. I'll try and put some code up for my ESP timer module.
- Fri Sep 04, 2015 2:12 am
- Forum: Other Boards
- Topic: MicroPython now running on node.IT boards
- Replies: 10
- Views: 10324
Re: MicroPython now running on node.IT boards
Would you like to collaborate with me (or me with you) on the ESP8266 port? I have added ESP based timers, general interrupt driven GPIO and a fully interrupt driven DHT22 driver. I could probably pull your fork and work my modules into your structure if you want? https://github.com/mianos/micropyth...
- Sat Aug 22, 2015 6:50 am
- Forum: Development of MicroPython
- Topic: Is there a way to call an initialiser when a module is loaded?
- Replies: 1
- Views: 2844
Is there a way to call an initialiser when a module is loaded?
I have a C module (spin free DHT22 module for the ESP8266, unlike all the existing 'interrupt' based ones that busy loop, wtf) and an interrupt framework. I am working on making it work for multiple concurrent and I want to initialise the interrupt handler table when the module is loaded. I know I c...