this is using the mbed os version 5-13-1

Dependencies:   mbed-http

Branch:
PassingRegression
Revision:
118:8df0e9c2ee3f
Parent:
117:8fd05113efc1
Child:
119:8d939a902333
--- a/source/common_types.h	Sun May 19 16:22:59 2019 +0000
+++ b/source/common_types.h	Sat May 25 16:25:42 2019 +0000
@@ -19,7 +19,8 @@
 #define MAX_IPv4_LEN         16
 #define MAX_CLOUD_USER_ID_LEN   32
 #define MAX_CLOUD_PASSWORD_LEN  32
-
+#define REC_DB_MSGTYPE          0x09
+#define BAR_DB_MSGTYPE          0x06
 /** ble configuration structure
 */
 typedef struct  {
@@ -109,7 +110,8 @@
   CONNECT_EVENT = 16,
   DATA_EVENT = 17,
   AT_COMMAND_FAILED = 18,
-  WIFI_WATCH_DOG = 19
+  WIFI_WATCH_DOG = 19,
+  AT_BLE_RESPONSE = 20
 }at_cmd_resp_t;
 
 typedef enum edm_msg_id
@@ -254,4 +256,31 @@
 } app_config_t;
 
 
+/* BLE data types */
+
+typedef enum
+{
+  BLE_CMD_NONE,
+  BLE_CMD_CONFIG,
+  BLE_CMD_CONNECT,
+  BLE_CMD_DISCONNECT,
+  BLE_CMD_SEND_AT_DATA_2BLE
+}ble_cmd_t;
+
+
+
+typedef struct {
+    ble_cmd_t     ble_cmd;                     /* BLE command             */
+    int           dataLen;                     /* size of data in buffer */
+    uint8_t       buffer[MAX_BLE_PACKET_SIZE]; /* buffer length     */
+} at_ble_msg_t;
+
+
+typedef struct {
+    at_cmd_resp_t at_resp;              /* AT response */
+    int           dataLen;              /* size of data in buffer */
+    uint8_t       buffer[MAX_BLE_PACKET_SIZE]; /* buffer length     */
+} ble_at_msg_t;
+
+
 #endif  // __COMMON_TYPES_H__
\ No newline at end of file