Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 #include "mbed.h" 00002 #include "ESP8266Interface.h" 00003 #include "TCPSocketConnection.h" 00004 #include "ifttt.h" 00005 #include "LM75B.h" 00006 00007 LM75B sensor(dp5, dp27); 00008 ESP8266Interface wifi(dp16,dp15,dp4,"SSID","Password",115200); // TX,RX,Reset,SSID,Password,Baud 00009 00010 int main() 00011 { 00012 char value[64]; 00013 00014 wifi.init(); //Reset 00015 wifi.connect(); //Use DHCP 00016 00017 TCPSocketConnection socket; 00018 00019 // Initialize ifttt object, add up to 3 optional values, trigger event. 00020 IFTTT ifttt("EverntName","Secret Key", &socket); // EventName, Secret Key, socket to use 00021 00022 sprintf(value,"%.3f", (float)sensor); 00023 00024 ifttt.addIngredients(value,"value2","value3"); 00025 ifttt.trigger(IFTTT_POST); 00026 }
Generated on Thu Jul 14 2022 01:56:10 by
