• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

values blank in IFTT email when using ESP32 in Arduino

Q&A Forum › Category: Arduino › values blank in IFTT email when using ESP32 in Arduino
0 Vote Up Vote Down
vgershman asked 6 years ago

Hello,

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.

Thank you,

Question Tags: Arduino, ESP32, ifttt, webhook call
3 Answers
0 Vote Up Vote Down
vgershman answered 6 years ago

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.
 
Thank you

0 Vote Up Vote Down
vgershman answered 6 years ago

ok, i found a good example to send data using json:
 
https://www.instructables.com/id/Sparkfun-Thing-How-to-Trigger-IFTTT-Event-and-Send/
 
 

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

Hello! I’m sorry for taking so long to get back to you, I’m glad you found an example for IFTTT. I definitely need to add something like that for Arduino IDE in my eBooks.
Regards,
Rui

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.