an IFTTT Webhook trigger library for ESP8266 dev boards.
Clone this repository to a following directory.
/Users/YOUR_USER_NAME/Documents/Arduino/libraries/
(for those who use Mac. )
Please google "Where to install Arduino additional libraries on Windows PC?" if you use Windows PC.
Insert a following line to top of your sketch.
#include <ESP8266Ifttt.h>
Call a function like following...
IFTTT.trigger(IFTTT_WEBHOOK_NAME, IFTTT_KEY);
where IFTTT_WEBHOOK_NAME is your IFTTT Webhook's name, and IFTTT_KEY is your IFTTT Webhook api key.
If you want add values to IFTTT trigers, call a function like following...
IFTTT.trigger(IFTTT_WEBHOOK_NAME, IFTTT_KEY, value1, value2, value3);
value1
, value2
, and value3
are String values. Values of the other types are not acceptable.