Am trying to receive data from a Maker Channel web request on IFTTT, but I cannot seem to figure out how to receive Strings as an option when I push values through the URL JSON call.
Below is the code am working on. Any help is appreciated.
What I want to do is receive information on IFTTT events, like “Tina clicked a new pic” and then display it on an LCD monitor or send data back to IFTTT and send out a SMS for example.
#define _DEBUG_
#include <ESP8266WiFi.h>
#include <ThingerWifi.h>
#define USERNAME "name"
#define DEVICE_ID "nodemcu"
#define DEVICE_CREDENTIAL "nodemcu"
#define SSID "SSID"
#define SSID_PASSWORD "password"
ThingerWifi thing(USERNAME, DEVICE_ID, DEVICE_CREDENTIAL);
void setup() {
Serial.begin(115200);
thing.add_wifi(SSID, SSID_PASSWORD);
thing["ifttt"] << [](pson& in) {
String x = in["value1"];
String y = in["value2"];
Serial.println(in["value1"]);
}
void loop() {
thing.handle();
}