smd.iotkit2.ch / Mbed 2 deprecated HTTP_POST

Dependencies:   EthernetInterface mbed-rtos mbed

Fork of HTTP_GET by smd.iotkit2.ch

Files at this revision

API Documentation at this revision

Comitter:
stefan1691
Date:
Fri Mar 18 10:41:28 2016 +0000
Parent:
7:4972e81b4b17
Commit message:
IoT Stick statt Raspi

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Jun 08 12:38:20 2015 +0000
+++ b/main.cpp	Fri Mar 18 10:41:28 2016 +0000
@@ -32,8 +32,8 @@
         map.put("write", "1");
         
         int ret = http.post("http://httpbin.org/post", map, &inText);
-        // lokale Variante mit CGI-Script auf Raspberry Pi. Wenn nicht Funktioniert: raspi2x durch IP-Adresse ersetzen
-        // int ret = http.post("http://raspi2x/cgi-bin/rest", map, &inText);
+        // lokale Variante mit CGI-Script auf IoT USB Stick. Wenn nicht Funktioniert: iot-stick durch IP-Adresse ersetzen
+        // int ret = http.post("http://iot-stick/rest/cgi-bin/rest", map, &inText);
         if ( ! ret ) 
         {
             printf("Executed POST successfully - read %d characters\n", strlen(str));