How can I write multiple fields all at once using ThingSpeak library?
显示 更早的评论
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?
采纳的回答
更多回答(1 个)
Milena Mendez
2022-11-26
编辑:Milena Mendez
2022-11-26
0 个投票
Hello
You can use the following sentence from your scrip, according with the values to publish:
thingSpeakWrite(channel number, [value1, value2,..., valueN],'WriteKey', appKey);
社区
更多回答在 ThingSpeak Community
类别
在 帮助中心 和 File Exchange 中查找有关 Read Data from Channel 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!