I am trying to send IFTTT email using ESp32 and Webhook. The IFTTT event gets fired, but email arrives with blank fields. I used 8266 Tutorial to setup IFTTT request. Below is the code i used.
Start your code here client.print(String("GET ") + resource + " HTTP/1.1\r\n" + "Host: " + server + "\r\n" + "Connection: close\r\n\r\n") + "Content-Type': 'application/json" ;
but the example does not show how to actually send the data. Is there an example that shows how to send the data? Also the tutorial does not use Webhook file.
Here is how i send the data:
Start your code here //create an instance of IFTTTTWebhook IFTTTWebhook wh(IFTTT_API_KEY, IFTTT_EVENT_NAME); makeIFTTTRequest(); // this is the above setup code. //send IFTTT email // wh.trigger( Water_Sensor_str,Power_Sensor_str,VBat_Sensor_str); wh.trigger( "23","24","25");
Is there an example on how to use Webhook calls? This used to work, so not sure what happened.
Allow me to clarify some of the confusing statements above. I had this working with Micropython. Now i switched to Arduino and my issue is about what syntax to use to send data to IFTT site. In the 8266 Tutorial it is nor clear how to send the data, please, clarify. Webhook was another method, but it did not work for me.
ok, i found a good example to send data using json: