Ethernet+BLE prototype
Dependencies: mbed EthernetInterface mbed-rtos
main.cpp
- Committer:
- teruo
- Date:
- 2014-02-20
- Revision:
- 1:50463ff10d56
- Parent:
- 0:da21a9dd2303
- Child:
- 3:d9445b9e7163
File content as of revision 1:50463ff10d56:
#include "mbed.h" #include "config.h" #include "log.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()); char UUID[] = "00000000-XXXX-XXXX-X000-XXXXXXxxxxxx"; for(int i=0;i<10000;i++) { printf("cnt = %d\r\n",i); httpSend(eth,UUID); wait(10); } eth.disconnect(); INFO_LOG ("BLE GW main stop !!!\r\n"); }