Multiple Values in one Field
Mostra commenti meno recenti
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:)
Risposta accettata
Più risposte (1)
Navadeep Ganesh U
il 12 Gen 2020
0 voti
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);
Community
Più risposte nel ThingSpeak Community
Categorie
Scopri di più su ThingSpeak in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!