9. Create a new code Blocks Project. Give your project a name and press “Create Code Project” . Set up your code to resemble below and deploy the code to your device.

Create a Flow

Navigate to the flow tab on the Wia platform and set up a new flow .

This flow will do all the back end heavy lifting for us from creating an event listener to listen for the event we have created through our button click and upon hearing the event sending a webhook which will enable us to send a tweet on twitter.

This flow comprises of Two nodes:

First drag the “create event” node in the trigger tab to the editor and configure it’s settings to listen for the event "send-tweet" from the device named Chip .

To finish, drag the "Webhook" node under the service tab to the editor and edit its configurations so as to resemble below.

This node essentially just makes a http request on behalf of us through IFTTT to post a tweet to our profile (hence the name webhook - acts as intermediary service to hook us up with the service we need without the extra hassle of making http request to them) and the Json Encoded option is just the form we want the request to come back as.

Lastly , link the two nodes together and away you go , press the button module and hey presto a tweet with the message you composed above goes out to your profile as seen in the example below

Congratulations and Well Done on completing the tutorial , Hope you enjoyed it!!!.