Ethernet+BLE prototype

Dependencies:   mbed EthernetInterface mbed-rtos

main.cpp

Committer:
teruo
Date:
2014-02-18
Revision:
0:da21a9dd2303
Child:
1:50463ff10d56

File content as of revision 0:da21a9dd2303:

#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");
}