How to add data to field with thingHTTP

조회 수: 3 (최근 30일)
Bernd Pilgram
Bernd Pilgram 2022년 2월 11일
답변: Christopher Stapels 2022년 3월 11일
Hello,
iˋm using a ThingHTTP GET request to my Shelly Cloud to receive a single temperature value.
Calling this ThingHTTP-request from my browser i get back the right single value (after setting up the right PARSE STRING).
Calling this request from the REACT app there seems to be no connection to any field of my channel.
How can I add the Information to add this single temp value to field1 of my channel ?
thanks 2 all
Bernd

채택된 답변

Christopher Stapels
Christopher Stapels 2022년 3월 11일
You can use MATLAB analysis code to add the value to your channel. Use webread() or webwrite() to get the data from the external service, and then thingSpeakWrite to write it to your channel. Then you can use TimeControl or React to run that code at regular intervals.

추가 답변 (0개)

커뮤니티

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

카테고리

Help CenterFile Exchange에서 Act on Data에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by