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 KIM HyoengJun

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.

Committer:
dudnwjs
Date:
Mon Jun 22 07:36:06 2015 +0000
Revision:
1:5cf3a6c969be
Parent:
0:a1f6b1ba8a1e
Child:
2:dba344c91bce
Basic Program Coding Complete

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dudnwjs 0:a1f6b1ba8a1e 1 #include "BleMsgHandler.h"
dudnwjs 0:a1f6b1ba8a1e 2
dudnwjs 0:a1f6b1ba8a1e 3 namespace sevencore_fota{
dudnwjs 0:a1f6b1ba8a1e 4
dudnwjs 0:a1f6b1ba8a1e 5 BleMsgHandler::BleMsgHandler(Serial *_device)
dudnwjs 0:a1f6b1ba8a1e 6 {
dudnwjs 0:a1f6b1ba8a1e 7 print_flag = 0;
dudnwjs 0:a1f6b1ba8a1e 8 device = _device;
dudnwjs 0:a1f6b1ba8a1e 9 }
dudnwjs 0:a1f6b1ba8a1e 10
dudnwjs 0:a1f6b1ba8a1e 11 BleMsgHandler::BleMsgHandler(Serial *_device, Serial *_hostpc)
dudnwjs 0:a1f6b1ba8a1e 12 {
dudnwjs 0:a1f6b1ba8a1e 13 print_flag = 1;
dudnwjs 0:a1f6b1ba8a1e 14 device = _device;
dudnwjs 0:a1f6b1ba8a1e 15 hostpc = _hostpc;
dudnwjs 0:a1f6b1ba8a1e 16 }
dudnwjs 0:a1f6b1ba8a1e 17
dudnwjs 1:5cf3a6c969be 18 BleMsgHandler::~BleMsgHandler(void)
dudnwjs 1:5cf3a6c969be 19 {
dudnwjs 1:5cf3a6c969be 20 }
dudnwjs 1:5cf3a6c969be 21
dudnwjs 0:a1f6b1ba8a1e 22 void BleMsgHandler::PrintTitle(void)
dudnwjs 0:a1f6b1ba8a1e 23 {
dudnwjs 0:a1f6b1ba8a1e 24 if( print_flag == 1 )
dudnwjs 0:a1f6b1ba8a1e 25 hostpc->printf("Sevencore Fota : BleMsg Handler Start\n");
dudnwjs 0:a1f6b1ba8a1e 26 }
dudnwjs 0:a1f6b1ba8a1e 27
dudnwjs 0:a1f6b1ba8a1e 28 }//namespace