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 TMP175 mbed-rtos mbed
Fork of HTTP_POST by
Diff: main.cpp
- Revision:
- 12:ecaa0831726b
- Parent:
- 11:4822e060bf3d
- Child:
- 13:1cbd0d5773dc
--- a/main.cpp Thu Jun 18 06:23:06 2015 +0000
+++ b/main.cpp Fri Mar 18 10:47:59 2016 +0000
@@ -57,8 +57,8 @@
map.put( "hall", ftoa( 2, hall.read() ) );
map.put( "temp", ftoa( 3, temp.fReadTemperatureTMP175() ) );
- // 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));
