Multiple Values in one Field
古いコメントを表示
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:)
採用された回答
その他の回答 (1 件)
Navadeep Ganesh U
2020 年 1 月 12 日
0 投票
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 コミュニティ
カテゴリ
ヘルプ センター および File Exchange で ThingSpeak についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!