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: ext_fota/MsgQueue.cpp
- Revision:
- 1:5cf3a6c969be
- Parent:
- 0:a1f6b1ba8a1e
- Child:
- 8:9eec2c246a85
diff -r a1f6b1ba8a1e -r 5cf3a6c969be ext_fota/MsgQueue.cpp --- a/ext_fota/MsgQueue.cpp Mon Jun 22 07:19:59 2015 +0000 +++ b/ext_fota/MsgQueue.cpp Mon Jun 22 07:36:06 2015 +0000 @@ -1,20 +1,20 @@ -#include "msg_queue.h" +#include "MsgQueue.h" #include "mbed.h" namespace sevencore_fota{ -Msg_Queue::Msg_Queue(int MaxSize):MaxNum(MaxSize) +MsgQueue::MsgQueue(int MaxSize):MaxNum(MaxSize) { Front = NULL; Rear = NULL; ElemCnt = 0; } -Msg_Queue::~Msg_Queue(void) +MsgQueue::~MsgQueue(void) { } -void Msg_Queue::EnQueue(void *vData) +void MsgQueue::EnQueue(void *vData) { Element *tmp = new Element; tmp->Data = vData; @@ -31,7 +31,7 @@ } } -void *Msg_Queue::DeQueue(void) +void *MsgQueue::DeQueue(void) { void *tmp; Element *tmpElem; @@ -48,12 +48,12 @@ return tmp; } -int Msg_Queue::GetElementCount(void) +int MsgQueue::GetElementCount(void) { return ElemCnt; } -bool Msg_Queue::IsEmpty(void) +bool MsgQueue::IsEmpty(void) { if( Front == NULL) return false;