- Tue Jun 23, 2015 11:01 pm
#21464
Ty, yeah with NodeMCU I am referring to the LUA firmware for ESP. I am aware that arduino is capable of hooking into Twitter, but figure I challenge myself to get it on ESP only setup.
Devsaurus,
through my research I believe ESP nodemcu hooking into twitter directly is not possible due to Oauth, probably a limitation of the memory of the ESP. I did find that thinkspeak has a App called THINGSTWEET that allows you do simple HTTP POST to send a twitter update.
https://thingspeak.com/docs/thingtweet Works great!!
However, I could not get it to read a message using the same APP with post code change. It is not apparent if it is possible or not.
However I was able figure out a not so clean workaround. Using TWEETControl
https://thingspeak.com/docs/tweetcontrol Thingspeak will monitor keyword of your choice on Twitter posts. Once picked up it can issues a HTTP Request, which I use to grab the twitter update message and post to my thinkspeak channel/field with the tEXT of message. Then my ESP periodically polls this channel for latest twitter message. Again, not a pretty workaround but was able to get ESP to read twitter. Problem with this is that I could not get it to work with PROTECTED private twitter accounts.
Sounds like MQTT also may have something similar. I have been meaning to get to learn MQTT, now I have a reason to. Devsaurus if you have a link to an example of MQTT using twitter that would be much appreciated...
Thanks..