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.
dialog_fota/app.cpp
- Committer:
- dudnwjs
- Date:
- 2015-06-23
- Revision:
- 3:1e70387e1337
- Child:
- 4:60be78a172c2
File content as of revision 3:1e70387e1337:
#include "app.h" #include "gapm_task.h" #include "dialog_fota_config.h" namespace sevencore_fota{ void app_rst_gap(BleMsgHandler *BMH) { struct gapm_reset_cmd gm_cmd; gm_cmd.operation = GAPM_RESET; uint8_t *msg; unsigned short msg_size = 1+sizeof(ble_hdr) + sizeof(gapm_reset_cmd); msg = new uint8_t[msg_size]; BMH->BleMsgAlloc(GAPM_RESET_CMD, TASK_GAPM, TASK_GTL, sizeof(struct gapm_reset_cmd),&gm_cmd,msg); BMH->BleSendMsg(msg,msg_size); return; } }//namespace