A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By gmarocco
#19218 Hy, I am working to a wifi datalogger : I would like to receive continuously (with some pause intervals) six different values from a serial device and then send them to different fields on thingspeak.com. I am a newbie with Lua language. The program written connects succesfully to the AccesPoint, receives correctly the serial inputs, but continues to execute the instruction Uart.on even if I would like that when all the six values are received, the program exectute the instructions in order to send data to "thingspeak.com" I attach the file init.lua and the file readserial1.lua. I am using GPIO0 in order to sinchronyze the trasmission: the external device sends data only when GPIO0 is high. At the moment the instructions in order to send data to thingspeak are referred to a single field.

Below is what I get by sending manually the values with luaEsplorer

Setting up WIFI...
> IP unavaiable, Waiting...
IP unavaiable, Waiting...
Config done, IP is 192.168.43.141
receive: 22
received values=1
receive:
33
received values=2
receive:
44
received values=3
receive:
55
received values=4
receive:
66
received values=5
receive:
77
received values=6
receive:
88
received values=7
receive:
99
received values=8

Thanks in advance, Marocco Gabriele
You do not have the required permissions to view the files attached to this post.