1
Dependencies: EthernetInterface IFTTT mbed-rtos mbed
Fork of IFTTT_Ethernet_Example by
Diff: main.cpp
- Revision:
- 2:6ef0af7c37d6
- Parent:
- 1:3010b44f07ff
--- a/main.cpp Mon Jul 13 18:50:53 2015 +0000 +++ b/main.cpp Fri Sep 09 13:14:00 2016 +0000 @@ -9,13 +9,14 @@ int main() { pc.baud(9600); - eth.init(); //Use DHCP + EthernetInterface eth; eth.connect(); + wait(0.5); printf("IP Address is %s \n\r", eth.getIPAddress()); TCPSocketConnection socket; // Initialize ifttt object, add up to 3 optional values, trigger event. - IFTTT ifttt("YourEventName","ChangeToYourSecretKey", &socket); // EventName, Secret Key, socket to use + IFTTT ifttt("OWJMAN","bkJhw8soKcjx28zrqAgeW2", &socket); // EventName, Secret Key, socket to use ifttt.addIngredients("this is awesome","test-ing","data!!!"); // 3 optional Values to send along with trigger. ifttt.trigger(); @@ -28,6 +29,4 @@ ifttt.trigger(IFTTT_POST); eth.disconnect(); - while(1) { - } }