meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| home_automation:esp8266:nodemcu [2016/04/06 06:56] – esp8266:nodemcu renamed to home_automation:esp8266:nodemcu niziak | home_automation:esp8266:nodemcu [2017/01/19 07:55] (current) – [Other Projects] niziak | ||
|---|---|---|---|
| Line 28: | Line 28: | ||
| * Current API: [[https:// | * Current API: [[https:// | ||
| + | |||
| + | ===== Saving memory ===== | ||
| + | * Avoid upvalues for context passed between event callbacks, as its very difficulat to get a handle on memory leaks created by these. Only use globals for this usecase. | ||
| + | * Nil globals once they are no longer needed so that they can be properly GCed. | ||
| + | * Allocate resources and create closures on a just-in-time basis. | ||
| + | * The cost of require or dofile is relatively small, so break your program into overlays one per event and use a small stub function as a callback to load each. | ||
| + | * Use compiled .lc files and load using dofile(). | ||
| ===== Scan WiFi ===== | ===== Scan WiFi ===== | ||
| Line 65: | Line 72: | ||
| * 1-wire temp sensor reporting to [[http:// | * 1-wire temp sensor reporting to [[http:// | ||
| * [[http:// | * [[http:// | ||
| + | * 1-wire temp sensor [[https:// | ||
| * Control 2 GPIO from Web [[http:// | * Control 2 GPIO from Web [[http:// | ||
| - | * | + | * Http server [[https:// |
| + | * Remote update [[http:// | ||
| - | ==== Free Cloud/ | + | ===== Free Cloud/ |
| * Thingspeak: [[http:// | * Thingspeak: [[http:// | ||
| * Telit: [[http:// | * Telit: [[http:// | ||
| Line 76: | Line 85: | ||
| todo | todo | ||
| * https:// | * https:// | ||
| + | |||