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

Dependencies:   mbed-http

Revision:
84:7c7add00f4bf
Parent:
83:9c271a50a70b
Child:
87:99b37d26ff2a
--- a/source/common_types.h	Tue Mar 26 23:33:51 2019 +0000
+++ b/source/common_types.h	Thu Mar 28 22:13:06 2019 +0000
@@ -4,10 +4,18 @@
 #include <string>
 #include "ble/BLE.h"
 #include "SecurityManager.h"
+#include "http_request.h"
 #include "common_config.h"
 #define BLE_MAX_DEVICE_NAME_LEN 10
 #define MAX_SSID_LEN 32
 #define MAX_PASSKEY_LEN 32
+#define EDM_START_BYTE       0xAA
+#define EDM_STOP_BYTE        0x55
+#define EDM_HDR_LEN          5
+#define MAX_EDM_PAYLOAD_LEN  (4096-1)
+#define MIN_EDM_PAYLOAD_LEN (2)
+#define MAX_HTTP_HEADER_LINES
+#define MAX_URL_LEN          100
 
 /** ble configuration structure
 */
@@ -111,11 +119,15 @@
 } at_data_msg_t;
 
 typedef struct {
+    http_method   method;       /* POST/GET etc... */
+    string        request_URI;  /* request URI/path */
+    string        http_version; /* http verstion HTTP/1.1 */
     string        hostName;     /* host name */
+    string        AcceptVal;    /* types accepted */
     string        contentType;  /* content type */
-    int           bodyLen;      /* body length     */
+    string        contentLen;   /* content length as string   */
     uint8_t       body[900];    /* body     */
-} http_post_request_t;
+} http_request_t;
 
 typedef struct {
     uint8_t       startByte;   /* start Byte 0xAA */
@@ -132,12 +144,8 @@
 typedef struct {
     uint8_t       peer_id          ;  /* peer id */
     conn_scheme_t connectionScheme;   /* connection scheme     */
-    string        url;          /* body     */
+    //string     *  url;          /* body     */
+    char        url[MAX_URL_LEN];          /* body     */
 } internet_config_t;
 
-#define EDM_START_BYTE       0xAA
-#define EDM_STOP_BYTE        0x55
-#define EDM_HDR_LEN          5
-#define MAX_EDM_PAYLOAD_LEN  (4096-1)
-#define MIN_EDM_PAYLOAD_LEN (2)
 #endif  // __COMMON_TYPES_H__
\ No newline at end of file