MATLAB Answers

How to read data in thingspeak using rest client?

3 views (last 30 days)
Mthunzi Booi
Mthunzi Booi on 5 Dec 2019
Commented: Håkon Dahle on 10 Dec 2019
Hi Team
I have this new URL and want to read all my fields channels, i have created today. My arduino does receieves messages currently, but i am unable to read non of them. What could the reason? Must it be a day to get data to be read? Output is -1 Rest Client response bad request.

  1 Comment

Håkon Dahle
Håkon Dahle on 10 Dec 2019
Your URL looks good, but you need to set your channel to be public by selecting "Share channel view with everyone" under Channels -> My Channels -> Charing.
Or you can leave your channel private and do as Hans suggests below.

Sign in to comment.

Answers (1)

Hans Scharler
Hans Scharler on 5 Dec 2019
Hi. You are close. You also need to provide a Read API Key.
https://api.thingspeak.com/channels/929272/feeds.xml?results=4&api_key=XXX
Look under the API Keys tab of your channel.

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags

Products


Release

R2019b