Sending a character string ?
Show older comments
Is it possible to send a character string (non-numeric) in a field? Of course, no numerical analysis would be possible and it would not be possible to plot the data in a graphic, but I would need that as sort of a log file for special events.
3 Comments
KSSV
on 30 Jan 2022
What field? Are you talking about a structure?
Stéphan Clark
on 30 Jan 2022
Christopher Stapels
on 31 Jan 2022
Edited: Christopher Stapels
on 31 Jan 2022
You can send strings. As you said, the automatic field plots wont work but string data is accepted. To read the data in MATLAB, use thingSpeakRead(...'outputformat','timetable') to get the string data. When you read with the REST API, no modification is required for the string data.
Answers (2)
Stéphan Clark
on 4 Feb 2022
Edited: Stéphan Clark
on 4 Feb 2022
0 votes
Christopher Stapels
on 4 Feb 2022
0 votes
Write the data to the status field (...&status=myStatus... ), and then set 'show status" in your channel settings.
1 Comment
Stéphan Clark
on 5 Feb 2022
Communities
More Answers in the ThingSpeak Community
Categories
Find more on Read Data from Channel in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!