Bluetooth Low Energy based Firmware Over The Air with Mbed. Mbed part is a external processor of the IoT devices and communicate with a Bluetooth module. The Bluetooth module have to support BLE and implement BLE FOTA profile designed by ours. BLE FOTA profile specification is available from our GIT hub wiki(https://github.com/sevencore/BLEFOTA).
Dependencies: mbed
Fork of mbed_fota by
Bluetooth Low Energy based Firmware Over The Air with Mbed. Mbed part is a external processor of the IoT devices and communicate with a Bluetooth module. The Bluetooth module have to support BLE and implement BLE FOTA profile designed by ours. BLE FOTA profile specification is available from our GIT hub wiki.
Diff: main.cpp
- Revision:
- 3:1e70387e1337
- Parent:
- 1:5cf3a6c969be
- Child:
- 4:60be78a172c2
diff -r dba344c91bce -r 1e70387e1337 main.cpp --- a/main.cpp Mon Jun 22 09:43:13 2015 +0000 +++ b/main.cpp Tue Jun 23 06:32:40 2015 +0000 @@ -1,5 +1,6 @@ #include "mbed.h" #include "BleMsgHandler.h" +#include "app.h" Serial hostpc(USBTX,USBRX); Serial device(p13,p14); @@ -9,10 +10,17 @@ using namespace sevencore_fota; int main() { + device.baud(115200); + BleMsgHandler myfota(&device,&hostpc); myfota.PrintTitle(); + app_rst_gap(&myfota); + + myfota.BleReceiveMsg(); + myfota.BleMsgHandle(); + while(1) { myled = 1;