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 2-07-04-Uebung by
Diff: main.cpp
- Revision:
- 11:4822e060bf3d
- Parent:
- 8:2ecceb32e68b
- Child:
- 12:61e1c14db87f
--- a/main.cpp Tue Jun 09 19:22:54 2015 +0000 +++ b/main.cpp Thu Jun 18 06:23:06 2015 +0000 @@ -52,10 +52,10 @@ // MAP (Argument=Wert) HTTPMap map; - map.put( "poti", ftoa( 1, poti.read() ) ); - map.put( "light", ftoa( 2, light.read() ) ); - map.put( "hall", ftoa( 3, hall.read() ) ); - map.put( "temp", ftoa( 4, temp.fReadTemperatureTMP175() ) ); + map.put( "poti", ftoa( 0, poti.read() ) ); + map.put( "light", ftoa(1, light.read() ) ); + 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);