August 29, 2018
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
March 7, 2017
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.
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.
Most Users Ever Online: 166
Currently Browsing this Page:
Guest Posters: 1
Newest Members:Richard, naturepur, Nimper, email@example.com, projectid030, mrlee234
Moderators: cstapels: 460
Administrators: Hans: 405, lee: 457