this is using the mbed os version 5-13-1
Diff: source/common_types.h
- Branch:
- PassingRegression
- Revision:
- 116:2296cf274661
- Parent:
- 114:b11bb96c09f3
- Child:
- 117:8fd05113efc1
--- a/source/common_types.h Sun May 19 11:25:28 2019 +0000
+++ b/source/common_types.h Sun May 19 13:09:27 2019 +0000
@@ -17,6 +17,8 @@
#define MAX_HTTP_HEADER_LINES
#define MAX_URL_LEN 100
#define MAX_IPv4_LEN 16
+#define MAX_CLOUD_USER_ID_LEN 32
+#define MAX_CLOUD_PASSWORD_LEN 32
/** ble configuration structure
*/
@@ -28,6 +30,13 @@
uint8_t pairingKey[6]; /* pairing Key */
} ble_config_t;
+/** login token configuration structure
+*/
+typedef struct {
+ char userid[MAX_CLOUD_USER_ID_LEN]; /* cloud login userid */
+ char pass[MAX_CLOUD_PASSWORD_LEN]; /* cloud login password */
+} login_config_t;
+
/** wifi configuration structure
*/
typedef struct {
@@ -36,13 +45,6 @@
nsapi_security_t security; /* WiFi security */
} wifi_config_t;
-/** application configuration structure
-*/
-typedef struct {
- wifi_config_t wifi_config; /* wifi configuration */
- ble_config_t ble_config; /* ble configuration */
-} app_config_t;
-
typedef enum
{
@@ -221,4 +223,15 @@
uint16_t remote_port; /* remote port */
} internet_config_t;
+
+/** application configuration structure
+*/
+typedef struct {
+ wifi_config_t wifi_config; /* wifi configuration */
+ ble_config_t ble_config; /* ble configuration */
+ internet_config_t internet_config; /* cloud configuration */
+ login_config_t login_config; /* cloud login credentials */
+} app_config_t;
+
+
#endif // __COMMON_TYPES_H__
\ No newline at end of file