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 | ||
esp8266:nodemcu [2015/09/21 21:02] – niziak | home_automation:esp8266:nodemcu [2017/01/19 06:55] (current) – [Other Projects] niziak | ||
---|---|---|---|
Line 12: | Line 12: | ||
file.close() | file.close() | ||
</ | </ | ||
- | This method is not comfortable, | + | This method is not comfortable, |
or [[https:// | or [[https:// | ||
Line 26: | Line 26: | ||
* Devel API (latest): [[https:// | * Devel API (latest): [[https:// | ||
* GPIO MAP: [[https:// | * GPIO MAP: [[https:// | ||
+ | |||
* 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 51: | Line 59: | ||
</ | </ | ||
- | ===== Other Projects ===== | + | ===== Resolving DNS ===== |
- | * 1-wire temp sensor reporting to [[thingspeak.com]], | + | It is not so easy. It need socket instance which will be used only for one DNS request, then socket will be destroyed. Response is performed by callback. |
- | * 1-wire temp sensor reporting to [[nettemp.pl]], | + | There is sth about easier API: [[https:// |
+ | |||
+ | ===== Compile to byte code ===== | ||
+ | You can compile everytihn except init.lua. | ||
+ | < | ||
+ | Will produce myprog.lc. | ||
+ | |||
+ | ====== Other Projects | ||
+ | * 1-wire temp sensor reporting to [[http://thingspeak.com]], | ||
+ | * 1-wire temp sensor reporting to [[http://nettemp.pl]], | ||
* [[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:// | ||
* Telit: [[http:// | * Telit: [[http:// | ||
* Google: [[https:// | * Google: [[https:// | ||
+ | * IBM: [[https:// | ||
todo | todo | ||
- | * http:// | ||
- | * http:// | ||
* https:// | * https:// | ||
+ | |||