gmag11 / EnigmaIOT

Secure sensor and gateway platform based on ESP8266 and ESP32
https://gmag11.github.io/EnigmaIOT
MIT License
240 stars 46 forks source link

Every node takes a memory of 520 bytes in gateway which is not reused on disconnection and reconnection of node #19

Closed arihantdaga closed 3 years ago

arihantdaga commented 3 years ago

I was using with esp8266 nodes and esp8266 gateway. All my nodes are non sleepy (I am using them for toggling relays) I noticed one thing, that if I power off few nodes. And then power them back on, the nodes get connected to the gateway but the free heap in the gateway decreases. I would like to contribute to this project and try to fix this behavior. Can you point me in some direction.

arihantdaga commented 3 years ago

Also, i noticed this, that nodeDisconnected callback is never called.

arihantdaga commented 3 years ago

Found it. It's already fixed in the dev branch. it was due to dynamic allocation of payload in processRxData function. Closing.