Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface HTTPClient mbed-rtos mbed
Fork of HTTPClient_IFTTT_Maker_post_HelloWorld by
Revision 1:b713347c7f63, committed 2015-06-25
- Comitter:
- kensuzuki
- Date:
- Thu Jun 25 12:14:29 2015 +0000
- Parent:
- 0:0bac9bcebae1
- Child:
- 2:7101bf2516ef
- Commit message:
- An example of HTTP POST IFTTT Maker event.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Jun 25 11:40:49 2015 +0000
+++ b/main.cpp Thu Jun 25 12:14:29 2015 +0000
@@ -23,8 +23,8 @@
}
HTTPMap map;
- map.put("value1", "Somebody pushed my reset button.");
- ret = http.post("http://maker.ifttt.com/trigger/button_pushed/with/key/bdsJdNU9BdvTf3CrsAuBE5", map, &inData);
+ map.put("value1", "Hello World.");
+ ret = http.post("http://maker.ifttt.com/trigger/button_pressed/with/key/YOUR_SECRET_KEY", map, &inData);
if (!ret) {
pc.printf("HTTP request succeeded.\r\n");
