Write Data in a specified field of the channel
Gonçalo Santos
on 30 Jun 2021
Latest activity Reply by Christopher Stapels
on 2 Jul 2021
Hi. I am a begginer.
I did a sample "Calculate high and low temperatures" with matlab analysis. I want to write data in a specified field in the new channel. I do not know how to do that. I already replace the empty spaces with channel ID and Api key. Then, when i try to set the field that i want to, it returns an error.
Is it right doing like I mention here:
thingSpeakWrite(writeChannelID,'Fields',[2],maxTempF,'timestamp',timeMaxTemp,'WriteKey',writeAPIKey);
1 Comment
Time DescendingI think you need to specify the name value pair 'values' when you use 'fields' Have a look at the examples on the doc page for thingSpeakWrite. If you get an error, it helps to provide the text of your error with the question.
Sign in to participate