I HAVE 32 SENSORS AND I WANT TO SEND SENSORS VALUE IN THINGSPEAK USING GPRS BUT IT IS NOT DONE HOW CAN I SEND?

2 次查看(过去 30 天)
I HAVE 32 SENSORS AND I WANT TO SEND SENSORS VALUE IN THINGSPEAK USING GPRS BUT IT IS NOT DONE HOW CAN I SEND?
FOR 8 SENSOR, DATA SEND TO THINGSPEAK

回答(4 个)

Christopher Stapels
Unfortunately, it is not possible to update 32 fields across four channels in one command. You can use four commands with the same syntax that you show above to update four channels. I would put a small delay of 10-100 ms between each call to avoid a burden on the server. Dont forget to use the correct API key for each channel.
If you absolutely have to update all 32 values in a single call, it is possible to pack multiple values into one field, but then you will need to unpack them again later. For example, you could write
...?api_key=xxxxxxxxxxxxxxxx&field1=value1,value2,value3...value32
Then when you read the values from ThingSpeak, you will need to parse the date for the comma. Also, in this mode the standard field plots wont show your data, but you could write a MATLAB visualization that reads the values and parses them, and then displays them.

Pujitha Narra
Pujitha Narra 2019-8-5
Hi Shyam,
Each channel in ThingSpeak has 8 fields, accommodating 8 sensors’ data. You can use multiple channels to accommodate the data of 32 sensors.

shyam sundar jaiswal
but mam at a time 32 field is not updated..
how to update 32 field at the same itime.
i used this line for updating 8 field
String str="GET https://api.thingspeak.com/update?api_key=X9NE6XWDIYOO71WI&field1=" + String(temp)+" &field2= " +String(temp1)+" &field3=" +String(temp2)+"&field4=" + String(temp3)+" &field5= " +String(temp4)+" &field6=" +String(temp5)+ "&field7=" + String(temp6)+" &field8= " +String(temp7)
for updation of 32 field what i can do

shyam sundar jaiswal
i generated 4 channel for that in thingspeak
so mam how to write syntax(command) for 32 sensor, can u please share me syntax(command) for that.

社区

更多回答在  ThingSpeak Community

类别

Help CenterFile Exchange 中查找有关 Visualize Data 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by