Simple IoT Board用のIFTTTのMaker Channelに繋げるためのサンプルです。

Dependencies:   SimpleIoTBoardLib mbed

Embed: (wiki syntax)

« Back to documentation index

IFTTT Class Reference

IFTTT Class Reference

The IFTTT class (if this then that) More...

#include <ifttt.h>

Public Member Functions

 IFTTT (const char *event, const char *key, TCPSocketConnection *s=NULL)
 Constructor, initialize the Event Name and Secret Key to be used.
bool addIngredients (char *v1=NULL, char *v2=NULL, char *v3=NULL)
 Add ingredients (values) to be sent to maker.ifttt.com.
bool addIngredients (int v1=NULL, int v2=NULL, int v3=NULL)
 Add ingredients (values) to be sent to maker.ifttt.com.
bool trigger (int triggerType=IFTTT_POST)
 Send data via POST or GET to maker.ifttt.com.

Detailed Description

The IFTTT class (if this then that)

Definition at line 40 of file ifttt.h.


Constructor & Destructor Documentation

IFTTT ( const char *  event,
const char *  key,
TCPSocketConnection *  s = NULL 
)

Constructor, initialize the Event Name and Secret Key to be used.

Parameters:
eventevent name of trigger
keysecret key provided by the maker channel for your event

Definition at line 44 of file ifttt.cpp.


Member Function Documentation

bool addIngredients ( char *  v1 = NULL,
char *  v2 = NULL,
char *  v3 = NULL 
)

Add ingredients (values) to be sent to maker.ifttt.com.

Parameters:
v1value 1 to send
v2value 2 to send
v3value 3 to send
Returns:
true if successful, false if failed

Definition at line 77 of file ifttt.cpp.

bool addIngredients ( int  v1 = NULL,
int  v2 = NULL,
int  v3 = NULL 
)

Add ingredients (values) to be sent to maker.ifttt.com.

Parameters:
v1value 1 to send
v2value 2 to send
v3value 3 to send
Returns:
true if successful, false if failed
bool trigger ( int  triggerType = IFTTT_POST )

Send data via POST or GET to maker.ifttt.com.

Parameters:
iftttTypespecifies how to send the data. POST by default, GET optional.
Returns:
true if successful, false if failed

Definition at line 200 of file ifttt.cpp.