Place to put your Basic demos and examples

Moderator: Mmiscool

User avatar
By EricZ
#69966 IFTTT.com can be used to make interesting automation applets for various things.

Here is a good way to trigger the webhook and send data from ESPbasic. First you have to get you key code from the IFTTT website, search webhook and then press the documentation button. This shows how to send value1 = 1, value2 = two, and value3 = 333. The print will show the returned response from IFTTT. One caveat there cannot be any spaces in the data for the three values otherwise a 502 BAD GATEWAY is returned by ESPBasic.

print wget("maker.ifttt.com/trigger/your_event_name/with/key/your_key_here?value1=1&value2=two&value3=333")
end