How can I write multiple fields all at once using ThingSpeak library?
Ältere Kommentare anzeigen
I want to write information for controlling a device in my ThingSpeak channel, can I store the control parameters in ThingSpeak and read all of the paremeters at once back to the device? I'd like to be able to read multiple fields without having to make multiple calls to the ThingSpeak readfield command on my Arduino or esp32 or ESP8266. Is this possible?
Akzeptierte Antwort
Weitere Antworten (1)
Milena Mendez
am 26 Nov. 2022
Bearbeitet: Milena Mendez
am 26 Nov. 2022
0 Stimmen
Hello
You can use the following sentence from your scrip, according with the values to publish:
thingSpeakWrite(channel number, [value1, value2,..., valueN],'WriteKey', appKey);
Communitys
Weitere Antworten in ThingSpeak Community
Kategorien
Mehr zu Read Data from Channel finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!