A weather station that uses GPS and WiFi to get the weather where you are. Almost better than actually going outside!
Dependencies: 4DGL-uLCD-SE ESP8266NodeMCUInterface GPS MbedJSONValue mbed-rtos mbed-src
connect.lua@1:fc07d1430053, 2016-03-14 (annotated)
- Committer:
- krbng4180
- Date:
- Mon Mar 14 03:04:19 2016 +0000
- Revision:
- 1:fc07d1430053
- Parent:
- 0:c4da54879553
publish
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
krbng4180 | 0:c4da54879553 | 1 | LUA( |
krbng4180 | 0:c4da54879553 | 2 | wifi.setmode(wifi.STATION); |
krbng4180 | 0:c4da54879553 | 3 | wifi.sta.config("%s", "%s"); |
krbng4180 | 0:c4da54879553 | 4 | wifi.sta.connect(); |
krbng4180 | 0:c4da54879553 | 5 | while wifi.sta.status() ~= 5 do end; |
krbng4180 | 0:c4da54879553 | 6 | print(wifi.sta.status()); |
krbng4180 | 0:c4da54879553 | 7 | ) |