ThingTweet - What is minimum Response Time I should expect ? | 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
ThingTweet - What is minimum Response Time I should expect ?
No permission to create posts
August 29, 2018
10:13 pm
Avatar
raybright
New Member
Members
Forum Posts: 1
Member Since:
August 29, 2018
sp_UserOfflineSmall Offline

I'm using a digital input connected to a ESP8266 to connect to ThingSpeak. I have then used ThingTweet to post tweets when the digital input status toggles.

The digital input is monitoring a reed switch on an electrically operated gate which I'd like to monitor the open/closed status.

Problem... The gate open/close status does come through as tweets but so slow, several minutes....

Question... What is the minimum response I should expect keeping mind that the gate may only be open for say a minute. Where is the time delay being introduced?

Thanks for your comments in anticipation

September 4, 2018
2:26 pm
Avatar
cstapels
Moderator
Members


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

You should be able to drastically improve your performance time if you set up your own monitor instead of twitter. You can use MQTT subscribe to get rapid feedback on a channel status.
Here is an example showing publish and subscribe for MQTT on ESP8266.
https://www.mathworks.com/help/thingspeak/mqtt-publish-and-subscribe-with-esp8266.html

You can use the subscribe part to monitor the gate status, but you will have to use another device at the monitor point. There are MQTT clients that will run on a cell phone, but I would use another ESP connected to a OLED display. You can use the callback function to update the screen.
I have been able to achieve sub second response time averages using MQTT subscribe.

It would be interesting to know if you get an additional performance gain using MQTT publish to update the gate status. If you feel like implementing it in two parts, please let us know what you get after implementing each part, or just let us know MQTT helps ypur application.

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online: ziplock9000
28 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:

EnigmBioge, debbiepe18, MatthewmUb, cathrynww1, Slark, inads11

Administrators: Hans: 387, lee: 457