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.

Revision:
4:60be78a172c2
Parent:
3:1e70387e1337
Child:
5:e11b23f9aacc
--- a/dialog_fota/dialog_fota_config.h	Tue Jun 23 06:32:40 2015 +0000
+++ b/dialog_fota/dialog_fota_config.h	Wed Jun 24 08:50:07 2015 +0000
@@ -1,8 +1,14 @@
 #ifndef DIALOG_FOTA_CONFIG_H
 #define DIALOG_FOTA_CONFIG_H
-
+#include "mbed.h"
 namespace sevencore_fota{
-    
+
+#define BD_ADDR_LEN         0x06
+#define ADV_DATA_LEN        0x1F
+#define SCAN_RSP_DATA_LEN   0x1F
+#define CO_ERROR_NO_ERROR                        0x00
+
+
 enum KE_TASK_TYPE
 {
     TASK_NONE = 0xFF,
@@ -150,7 +156,35 @@
 };
 
 
+///BD Address structure
+struct bd_addr
+{
+    ///6-byte array address value
+    uint8_t  addr[BD_ADDR_LEN];
+};
 
-}
+
+///Advertising report structure
+struct adv_report
+{
+    ///Event type:
+    /// - ADV_CONN_UNDIR: Connectable Undirected advertising
+    /// - ADV_CONN_DIR: Connectable directed advertising
+    /// - ADV_DISC_UNDIR: Discoverable undirected advertising
+    /// - ADV_NONCONN_UNDIR: Non-connectable undirected advertising
+    uint8_t        evt_type;
+    ///Advertising address type: public/random
+    uint8_t        adv_addr_type;
+    ///Advertising address value
+    struct bd_addr adv_addr;
+    ///Data length in advertising packet
+    uint8_t        data_len;
+    ///Data of advertising packet
+    uint8_t        data[ADV_DATA_LEN];
+    ///RSSI value for advertising packet
+    uint8_t        rssi;
+};
+
+}//namespace
 
 #endif//DIALOG_FOTA_CONFIG_H