I need a Lua language script for a NodeMCU v2
Script must run on a sample NodeMCU v2 Device.
Requirements:
-Connect To Wifi
-Read analog pin - A0
-Sync Time to NPP
-Send JSON data to http endpoint;. Configure to send JSON to [login to view URL]
{"temperature":"72.69","ts":"1552280727000","sensorID":"4070162"}
-Enter Deep Sleep mode
--[login to view URL]
Wake up after 5 minutes and repeat.
If you do not have experience with Lua coding or NodeMCU please do not bid. The application cannot be written in C using Arduino, the sleep library needs to in native Lua
Hi
I've set up a couple of sensors at home using NodeMCU, so do have some experience with it.
Can you tell me what type of temperature sensor do you want to read from?
I experimented reading from a DHT11 using NodeMCU, but seemed to get some timing issues with the communication. At least the built in DHTxx module from NodeMCU as not working as I would expect.
But I did not spend much time on it because I just decided to program that sensor unit in C.
I would really like to try again using NodeMCU Lua, and am confident that I would come up with a good solution.
Hope to hear from you.
Best regards.
Bjarni Sigurdsson