Remote Sensing demo. This is the code that runs on mbed to interface with the Remote Sensing Applet Demo
Dependencies: EthernetNetIf mbed TMP102 HTTPServer ADJD-S371_ColourSens
Diff: main.cpp
- Revision:
- 1:0f7aff70292e
- Parent:
- 0:3abbad5a358a
--- a/main.cpp Fri Oct 01 13:43:20 2010 +0000 +++ b/main.cpp Fri Oct 01 14:29:46 2010 +0000 @@ -33,13 +33,6 @@ EthernetNetIf eth; HTTPServer svr; - -void poll(void){ - Net::poll(); -} - -Ticker poller; - void getColour(char * input, char * Output); void getTemperature(char *input, char * Output); void getPressure(char *input, char * Output); @@ -95,11 +88,11 @@ svr.bind(80); - poller.attach(&poll, 0.05); printf("Listening...\n"); //Listen indefinitely while(true){ - //Do own thing here, the poll is handled by a ticker. + Net::poll(); + //Do own thing here //This could for example be data logging.