Uploading sensor data (voltage divider, MAX4172, INA219) over Ethernet to Thing Speak service. Uses old mbed revision that is compatible with NetServices library. I2C communication is made with I2CR library.
Dependencies: C12832 I2CR INA219 NetServices mbed
Fork of NetServices_HelloWorld by
Diff: main.cpp
- Revision:
- 3:aeaa9fa8cda0
- Parent:
- 2:16857d9ab50d
- Child:
- 4:26f346102b1a
diff -r 16857d9ab50d -r aeaa9fa8cda0 main.cpp --- a/main.cpp Fri Nov 19 21:54:02 2010 +0000 +++ b/main.cpp Sun Nov 21 17:13:57 2010 +0000 @@ -30,8 +30,9 @@ printf("\n\n/* NetServices tribute library demonstration */\n"); printf("Try starting the program with the network disconnected and then connect after a few timeouts reported\n\n"); EthernetErr ethErr; + int count = 0; do { - printf("Setting up...\n"); + printf("Setting up %d...\n", ++count); ethErr = eth.setup(); if (ethErr) printf("Timeout\n", ethErr); } while (ethErr != ETH_OK);