Ethernet+BLE prototype
Dependencies: mbed EthernetInterface mbed-rtos
Diff: main.cpp
- Revision:
- 0:da21a9dd2303
- Child:
- 1:50463ff10d56
diff -r 000000000000 -r da21a9dd2303 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Feb 18 11:34:08 2014 +0000 @@ -0,0 +1,26 @@ +#include "mbed.h" +#include "config.h" +#include "log.h" +#include "EthernetInterface.h" +#include "httpSend.h" + +int main() { + INFO_LOG ("BLE GW main start !!!\r\n"); + + // Initialize + EthernetInterface eth; + eth.init(); + eth.connect(); + + INFO_LOG ("IP Address is %s \r\n", eth.getIPAddress()); + + for(int i=0;i<10000;i++) { + printf("cnt = %d\r\n",i); + + httpSend(); + wait(10); + } + eth.disconnect(); + + INFO_LOG ("BLE GW main stop !!!\r\n"); +}