Unable to post to Thingspeak channel via TCP

조회 수: 2 (최근 30일)
Emilio Rubio Garcia
Emilio Rubio Garcia 2020년 1월 16일
편집: Christopher Stapels 2020년 1월 21일
Dear Mr.:
I've got problem for uploading data to my channe. I am not been able to post (via Get sentence) in my channel (949075) for trials, although I'm getting the right answer from your server. I can see that data is not uploading because it is not appearing in downloaded files. I have been able to post (same Get way) but I had to change Arduino sketch because it was not stable. Is now that it is stable, because I am getting the right sequence of messages from your server. It took a lot of time and trials before I have been able to upload data.
Could you, please, help me for solving issue?
Please, let me know if I should do anything by my side.
Thank you very much in advance.
Emilio Rubio.
  댓글 수: 1
Christopher Stapels
Christopher Stapels 2020년 1월 17일
편집: Christopher Stapels 2020년 1월 21일
How do you know the data is not uploading? When you look at the data in your channel, do you get no entires? You can use the format
To see the data in your channel. (replace the x with your read api key)
Do you see the data you posted there with that url?
If you are using an arduino, I reccomend the ThingSpeak communication Library for Arduino - it does most of the posting work for you and makes sure to get the sequences correct.

댓글을 달려면 로그인하십시오.

답변 (2개)

Emilio Rubio Garcia
Emilio Rubio Garcia 2020년 1월 17일
Hi, I'm quite sorry because at the time I wrote comment I was not being able to upload data for a long time because I did't see that there was a mistake in my code. Now I am already being able to upload data to server. By the way, I would like to know if there is a way for uploading data to server keeping session alive or do I have to open-send-close connection every time I need to upload records. Thank you very much in advance and apologize for the inconvenience. Regards. Emilio Rubio.

Christopher Stapels
Christopher Stapels 2020년 1월 17일
No problem. If you look at the code in the doc examples, the way I generally do it is to check the connection for each loop, but im my experience, the connection will stay unless you go out of wifi range. I would really reccomend using the ThingSpeak Arduino library to manage your connection.

커뮤니티

더 많은 답변 보기:  ThingSpeak 커뮤니티

카테고리

Help CenterFile Exchange에서 Read Data from Channel에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by