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:
8:9eec2c246a85
Basic Program Coding Complete

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dudnwjs 0:a1f6b1ba8a1e 1 #ifndef MSGQUEUE_H
dudnwjs 0:a1f6b1ba8a1e 2 #define MSGQUEUE_H
dudnwjs 0:a1f6b1ba8a1e 3
dudnwjs 0:a1f6b1ba8a1e 4 namespace sevencore_fota{
dudnwjs 0:a1f6b1ba8a1e 5
dudnwjs 0:a1f6b1ba8a1e 6 struct Element
dudnwjs 0:a1f6b1ba8a1e 7 {
dudnwjs 0:a1f6b1ba8a1e 8 void *Data;
dudnwjs 0:a1f6b1ba8a1e 9 struct Element *Next;
dudnwjs 0:a1f6b1ba8a1e 10 };
dudnwjs 0:a1f6b1ba8a1e 11
dudnwjs 1:5cf3a6c969be 12 class MsgQueue
dudnwjs 0:a1f6b1ba8a1e 13 {
dudnwjs 0:a1f6b1ba8a1e 14 public:
dudnwjs 0:a1f6b1ba8a1e 15
dudnwjs 1:5cf3a6c969be 16 MsgQueue(int MaxSize = 512);
dudnwjs 1:5cf3a6c969be 17 ~MsgQueue(void);
dudnwjs 0:a1f6b1ba8a1e 18 void EnQueue(void *vData);
dudnwjs 0:a1f6b1ba8a1e 19 void *DeQueue(void);
dudnwjs 0:a1f6b1ba8a1e 20 int GetElementCount(void);
dudnwjs 0:a1f6b1ba8a1e 21 bool IsEmpty(void);
dudnwjs 0:a1f6b1ba8a1e 22
dudnwjs 0:a1f6b1ba8a1e 23 private:
dudnwjs 0:a1f6b1ba8a1e 24 Element *Front;
dudnwjs 0:a1f6b1ba8a1e 25 Element *Rear;
dudnwjs 0:a1f6b1ba8a1e 26 const int MaxNum;
dudnwjs 0:a1f6b1ba8a1e 27 int ElemCnt;
dudnwjs 0:a1f6b1ba8a1e 28
dudnwjs 0:a1f6b1ba8a1e 29 };
dudnwjs 0:a1f6b1ba8a1e 30
dudnwjs 0:a1f6b1ba8a1e 31 }//namespace
dudnwjs 0:a1f6b1ba8a1e 32
dudnwjs 0:a1f6b1ba8a1e 33 #endif //MSG_QUEUE_H
dudnwjs 0:a1f6b1ba8a1e 34