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: dialog_fota/dialog_fota_config.h
- Revision:
- 5:e11b23f9aacc
- Parent:
- 4:60be78a172c2
- Child:
- 9:fcf91f563147
diff -r 60be78a172c2 -r e11b23f9aacc dialog_fota/dialog_fota_config.h --- a/dialog_fota/dialog_fota_config.h Wed Jun 24 08:50:07 2015 +0000 +++ b/dialog_fota/dialog_fota_config.h Mon Jul 13 06:32:05 2015 +0000 @@ -6,6 +6,7 @@ #define BD_ADDR_LEN 0x06 #define ADV_DATA_LEN 0x1F #define SCAN_RSP_DATA_LEN 0x1F + #define CO_ERROR_NO_ERROR 0x00 @@ -76,6 +77,7 @@ TASK_CPPC = 53 , // Cycling Power Profile Client Task // Start of conditionally assigned task types + TASK_FOTA_SERVER = 54 , #if (BLE_SAMPLE128) TASK_SAMPLE128 , // Sample128 Task @@ -185,6 +187,15 @@ uint8_t rssi; }; +/// Connection type +enum prf_con_type +{ + ///Discovery type connection + PRF_CON_DISCOVERY = 0x00, + /// Normal type connection + PRF_CON_NORMAL = 0x01, +}; + }//namespace #endif//DIALOG_FOTA_CONFIG_H