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:
13:1cbd0d5773dc
Parent:
12:ecaa0831726b
--- a/main.cpp	Fri Mar 18 10:47:59 2016 +0000
+++ b/main.cpp	Fri Apr 15 14:28:39 2016 +0000
@@ -58,7 +58,7 @@
         map.put( "temp", ftoa( 3, temp.fReadTemperatureTMP175() ) );
         
         // 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);
+        int ret = http.post("http://iotkit/rest/cgi-bin/restsql", map, &inText);
         if ( ! ret ) 
         {
             printf("Executed POST successfully - read %d characters\n", strlen(str));