Hey there! Today I dusted off my Arduino to write a tutorial I think you will like enough. This is post messages on Twitter from Arduino. It is easy and fast. Only we need:
If we have the Ethernet Shield, we can use an Arduino Yun.
The process is simple . We will continue to give us the steps in this page .
The first thing to do is get a token to publish our account from Arduino. To do this, we enter this link.
After authorizing the application, we obtain the token we wanted:
The bookstore can download from this link . To install, unzip the content:
After unpacking the library, we restart the Arduino IDE for changes to take effect.
The code is explained with comments in it. Still, he does not miss it. Too easy.
All you have to do is enter your token on the line Twitter twitter ( "TOKEN ENTER HERE" ) ; and configure an IP in byte ip [ ] = { 192 , 168 , 0 , 250 } ; . After this, just charge the Arduino the following code:
LOOK AT THE COMMENT
When the code is executed and, if all goes well, we will see in our Twitter account a new message.