this is using the mbed os version 5-13-1
Diff: source/WiFiManager.cpp
- Revision:
- 86:04fc2fcda7ec
- Parent:
- 85:9f896e1e041c
- Child:
- 87:99b37d26ff2a
--- a/source/WiFiManager.cpp Thu Mar 28 23:03:33 2019 +0000
+++ b/source/WiFiManager.cpp Thu Mar 28 23:41:10 2019 +0000
@@ -435,9 +435,11 @@
printf("\n[WIFI MAN] uri = %s", http_req_cfg->request_URI.c_str());
strncat(internet_config.url, http_req_cfg->request_URI.c_str(), http_req_cfg->request_URI.size());
printf("\n[WIFI MAN] server url = %s\n", internet_config.url);
+ printf("\n[WIFI MAN] contentLenstr = %s\n", http_req_cfg->contentLen.c_str());
//printf("\n[WIFI MAN] server url = %s\n", internet_config.url.c_str());
//const char* url = internet_config.url;
+ // http_request = new HttpRequest(network,
//https_request = new HttpsRequest(network,
http_request = new HttpRequest(network,
//SSL_CA_PEM,
@@ -450,6 +452,7 @@
setHttpHeader("Content-Length", http_req_cfg->contentLen);
int bodyLen;
sscanf(http_req_cfg->contentLen.c_str(), "%d", &bodyLen);
+ printf("contenLenstr = %s bodyLen = %d\n", http_req_cfg->contentLen.c_str(), bodyLen);
http_response = https_request->send(http_req_cfg->body, bodyLen);
free_DataMsg();
if (!http_response) {