Here I will be posting anything I see any importance to me and things that I found or did and prefer not to forget anymore with some little hope that some of this shit will be any use for someone else.
Showing posts with label NodeMCU. Show all posts
Showing posts with label NodeMCU. Show all posts
Thursday, September 15, 2016
Reading DHT22 and Light sensor data using NodeMCU dev board
Moved to http://asknotes.com/2016/09/15/reading-dht22-and-light-sensor-data-using-nodemcu-dev-board/
tmr.alarm not working on ESP12E 0.9.5 firmware
Tested that this sample was not working on dev board:
Checked firmware version (connected to ESPlorer and pressed reset):
ESP12E default NodeMCU 0.9.5 build 20150318 powered by Lua 5.1.4
Decided to update firmware. Found here that only 9.6 is available precompiled, later ones have to be costum built. Downloaded 9.6 files and uploaded them using ESP8266Flasher.exe
Checked firmware version then:
NodeMCU 0.9.6 build 20150704 powered by Lua 5.1.4
if not tmr.alarm(0, 5000, tmr.ALARM_SINGLE, function() print("hey there") end) then print("whoopsie") end
Checked firmware version (connected to ESPlorer and pressed reset):
ESP12E default NodeMCU 0.9.5 build 20150318 powered by Lua 5.1.4
Decided to update firmware. Found here that only 9.6 is available precompiled, later ones have to be costum built. Downloaded 9.6 files and uploaded them using ESP8266Flasher.exe
Checked firmware version then:
NodeMCU 0.9.6 build 20150704 powered by Lua 5.1.4
And tested this code sample:
if not tmr.alarm(0, 5000, tmr.ALARM_SINGLE, function() print("hey there") end) then print("whoopsie") end
It worked.
Subscribe to:
Posts (Atom)