this is using the mbed os version 5-13-1
Diff: source/common_types.h
- Revision:
- 79:a2187bbfa407
- Parent:
- 78:07bb86e3ce14
- Child:
- 80:e8f0e92e3ac9
--- a/source/common_types.h Sat Mar 16 13:05:52 2019 +0000
+++ b/source/common_types.h Wed Mar 20 21:02:47 2019 +0000
@@ -1,6 +1,8 @@
#ifndef __COMMON_TYPES_H__
#define __COMMON_TYPES_H__
#include <mbed.h>
+#include "ble/BLE.h"
+#include "SecurityManager.h"
#define BLE_MAX_DEVICE_NAME_LEN 10
#define MAX_SSID_LEN 32
#define MAX_PASSKEY_LEN 32
@@ -8,9 +10,11 @@
/** ble configuration structure
*/
typedef struct ble_config {
- char deviceName[BLE_MAX_DEVICE_NAME_LEN]; /* BLE Device Name */
- uint16_t advInterval; /* advertising interval in msecs */
- uint16_t advTimeout; /* advertising timeout in secs */
+ char deviceName[BLE_MAX_DEVICE_NAME_LEN]; /* BLE Device Name */
+ uint16_t advInterval; /* advertising interval in msecs */
+ uint16_t advTimeout; /* advertising timeout in secs */
+ //Passkey_t pairingKey; /* pairing Key */
+ uint8_t pairingKey[6]; /* pairing Key */
} ble_config_t;
/** ble configuration structure
@@ -29,4 +33,20 @@
} app_config_t;
+typedef enum wifi_cmd
+{
+ WIFI_CMD_NONE,
+ WIFI_CMD_SCAN,
+ WIFI_CMD_CONNECT,
+ WIFI_CMD_DISCONNECT,
+ WIFI_CMD_SEND_HTTPS_REQ,
+ WIFI_CMD_SEND_HTTP_REQ
+}wifi_cmd_t;
+
+
+typedef struct {
+ wifi_cmd_t wifi_cmd; /* wifi command */
+} wifi_cmd_message_t;
+
+
#endif // __COMMON_TYPES_H__
\ No newline at end of file