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.
ext_fota/MsgQueue.h
- Committer:
- dudnwjs
- Date:
- 2015-06-22
- Revision:
- 0:a1f6b1ba8a1e
- Child:
- 1:5cf3a6c969be
File content as of revision 0:a1f6b1ba8a1e:
#ifndef MSGQUEUE_H #define MSGQUEUE_H namespace sevencore_fota{ struct Element { void *Data; struct Element *Next; }; class Msg_Queue { public: Msg_Queue(int MaxSize = 512); ~Msg_Queue(void); void EnQueue(void *vData); void *DeQueue(void); int GetElementCount(void); bool IsEmpty(void); private: Element *Front; Element *Rear; const int MaxNum; int ElemCnt; }; }//namespace #endif //MSG_QUEUE_H