Hi everyone,
I’m trying to implement a very simple sketch to store historical data to Google sheets using ifttt.
This is my sketch:
void setup()
{
pinMode(7, INPUT );
Serial.begin(9600);
thing[“water”] >> [](pson& out){ out = !digitalRead(7); };
};
void loop()
{
thing.handle();
monitorkw = digitalRead(7);
unsigned long currentMillis = millis();
if(minutes_interval>0 && currentMillis - previousMillis >= minutes_interval * 10000)
{
previousMillis = currentMillis;
Serial.println(monitorkw);
//add a row to the Google Sheet using IFTTT
pson txtMsg;
txtMsg[“value1”] = monitorkw;
thing.call_endpoint(“kw”, txtMsg);
}
}
In my thinger endpoint config I’ve created a new one called kw with ifttt maker channel trigger, If I try to test it It doesn’t work.
I’m not sure if it is due to bad sketch or bad config of endpoind or ifttt conf.
Is it this correct?
thanks