smd.iotkit2.ch / Mbed 2 deprecated 2-07-04-Uebung

Dependencies:   EthernetInterface TMP175 mbed-rtos mbed

Fork of HTTP_POST by smd.iotkit2.ch

Revision:
6:48a4698a3416
Parent:
5:13c63366d788
Child:
7:4972e81b4b17
--- a/main.cpp	Wed May 27 08:16:40 2015 +0000
+++ b/main.cpp	Sun Jun 07 18:42:23 2015 +0000
@@ -32,6 +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/action", map, &inText);
         if ( ! ret ) 
         {
             printf("Executed POST successfully - read %d characters\n", strlen(str));