Multiple Values in one Field

조회 수: 4 (최근 30일)
Fabian Boruta
Fabian Boruta 2019년 4월 17일
댓글: AL-HASAN MANSURI 2023년 2월 6일
Hello,
I am still quite new at Thingspeak and do not yet have the idea where to look exactly. As a result, I spent the last few hours trying to find a solution to my problem, unfortunately without success. My problem is, we have 8 fields per channel, but I have a sensor package with 10 parameters. Can I insert several parameters into one single field using an Arduino code or do I have to create a new channel separately and then merge them using the example you provided? For example, I wanted to send the dust fractions for p10 and p25 in a field. I hope you can help me:)

채택된 답변

Vinod
Vinod 2019년 5월 7일
You can pack more data into a field, but, you will have to use your own algorithm in MATLAB to unpack the data and update MATLAB visualizations to see the data. Built in charts on ThingSpeak assume a single value per field.
  댓글 수: 1
AL-HASAN MANSURI
AL-HASAN MANSURI 2023년 2월 6일
Please explain in simple terms or just give one example for better understanding

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Navadeep Ganesh U
Navadeep Ganesh U 2020년 1월 12일
Updating multiple values to a field is not allowed in thingspeak. To update multiple data , you need to Cascade thingspeak.write. Its something like this.
String sendData = apiKey+"&field1="+String(temp)+"&field2="+String(humi)+"\r\n\r\n";
or,
ThingSpeak.setField(1, (float)temp);
ThingSpeak.setField(2, (float)humi);
ThingSpeak.writeFields(myChannelNumber, myWriteAPIKey);

커뮤니티

더 많은 답변 보기:  ThingSpeak 커뮤니티

카테고리

Help CenterFile Exchange에서 ThingSpeak에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by