Thanks. I will add this memory info to my log and additionally timestamp at the beginning of each line.
Below sample curl calls (in my app I have D1 and D2 configured as relays and D5 as temperature sensor):
1) curl -X GET http://nodemcuip -H "Content-Type: application/json"
result:
{"error":"","result":{"D1":0,"D2":0,"D5":22.75}}
2) curl -X POST http://nodemcuip -H "Content-Type: application/json" -d '{"D1":"1", "D2": "0"}'
turns on D1 relay and turns off D2 relay.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks. I will add this memory info to my log and additionally timestamp at the beginning of each line.
Below sample curl calls (in my app I have D1 and D2 configured as relays and D5 as temperature sensor):
1) curl -X GET http://nodemcuip -H "Content-Type: application/json"
result:
{"error":"","result":{"D1":0,"D2":0,"D5":22.75}}
2) curl -X POST http://nodemcuip -H "Content-Type: application/json" -d '{"D1":"1", "D2": "0"}'
turns on D1 relay and turns off D2 relay.