this is using the mbed os version 5-13-1
Diff: source/WiFiManager.h
- Revision:
- 88:7ffa053be662
- Parent:
- 87:99b37d26ff2a
- Child:
- 90:ed0267eca7b5
--- a/source/WiFiManager.h Fri Mar 29 22:18:33 2019 +0000
+++ b/source/WiFiManager.h Sun Mar 31 22:09:45 2019 +0000
@@ -35,6 +35,7 @@
private:
+ Mutex _wmutex; // Protect wifi thread
wifi_config_t wifi_config;
internet_config_t internet_config;
WiFiInterface *network;
@@ -43,6 +44,8 @@
HttpResponse* http_response;
http_request_t *http_req_cfg;
nsapi_size_or_error_t lastScanCount;
+ bool https_connection_active;
+ TLSSocket* socket;
wifi_cmd_t wifiCmd;
//at_data_msg_t *at_data_resp;
int chunkNum;
@@ -92,6 +95,10 @@
void free_DataMsg();
void body_callback(const char *at, uint32_t length);
void return_response(HttpResponse* res);
+ void sendResponseDownloadData(at_cmd_resp_t at_cmd,
+ const uint8_t * buf,
+ int bufLen);
+ bool createTLSconnection(const char *hostName);
/**
* Allows timeout to be changed between commands