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
댓글 수: 0
답변 (4개)
Christopher Stapels
2019년 8월 6일
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.
댓글 수: 0
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.
댓글 수: 0
shyam sundar jaiswal
2019년 8월 5일
댓글 수: 1
Pujitha Narra
2019년 8월 5일
The command updates a channel with api_key=X9NE6XWDIYOO71WI. You can create 3 more channels and add commands for each of the channels.
커뮤니티
더 많은 답변 보기: ThingSpeak 커뮤니티
참고 항목
카테고리
Help Center 및 File Exchange에서 Visualize Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!