ThingHTTP is not calling on meeting certain condition in React | ThingSpeak Apps | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
ThingHTTP is not calling on meeting certain condition in React
No permission to create posts
May 20, 2017
3:50 pm
Avatar
ajaysaini
New Member
Members
Forum Posts: 1
Member Since:
May 20, 2017
sp_UserOfflineSmall Offline

Hi I have created one channel in which I am sending ADC value from ESP8266 and logging it to thingspeak. Alright! it is working well. I have created one react http://imgur.com/a/gTOea where I mentioned to trigger a ThingHTTP on meeting one condition. If ADC value is greater than 20 then action is ThingHTTP and perform this action http://imgur.com/a/Ohoev

If you see my channel http://imgur.com/a/WqtOZ , ADC value is always greater than 20, that means it should react everytime. As according to this, it should perform an action which I defined in ThingHTTP.

So, I am not sure if it is hitting ThingHTTP action GET https://api.thingspeak.com/apps/thinghttp/send_request?api_key=MY_KEY

Can anyone suggest how I can check this ? if react is hitting an action or not ? I have this understanding that on meeting a condition it should call this URL https://api.thingspeak.com/apps/thinghttp/send_request?api_key=MY_KEY automatically. Please correct me If I am wrong ?

May 22, 2017
4:41 pm
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 209
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

You could test your react by using your thingHTTP to write to a ThingSpeak channel.  Use the instructions https://www.mathworks.com/help/thingspeak/update-channel-feed.html to set your thingHTTP to publish to your channel (be careful with the two different API keys).  Have the thingHTTP post a unique value to your channel:

URL https://api.thingspeak.com/update

Method: POST

Headers:
Name: Content-Type
Value: application/x-www-form-urlencoded

Body: api_key=THE_WRITE_API_KEY&field1=12345 Be sure to include the ampersand.

Then use your browser to trigger it:

https://api.thingspeak.com/apps/thinghttp/send_request?api_key=THING_HTTP_API_KEY

Once you see it worked, change the value 12345, and see if it gets triggered from the react. (you might have to wait ten minutes)

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
20 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

josephrj11, dennis55, jillhp4, tabathawg69, MarinaMa, Susandom

Administrators: Hans: 387, lee: 457