Okundu Omeni
/
wifi-https-ble-sm-uart-atcmd-5-13-1
this is using the mbed os version 5-13-1
Diff: source/WiFiManager.cpp
- Revision:
- 85:9f896e1e041c
- Parent:
- 84:7c7add00f4bf
- Child:
- 86:04fc2fcda7ec
--- a/source/WiFiManager.cpp Thu Mar 28 22:13:06 2019 +0000 +++ b/source/WiFiManager.cpp Thu Mar 28 23:03:33 2019 +0000 @@ -432,7 +432,8 @@ //Callback<void(const char *at, uint32_t length)> body_callback = 0 printf("\n[WIFI MAN] Http Request received:"); http_req_cfg = (http_request_t *) data_msg->buffer; - strncat(internet_config.url, http_req_cfg->request_URI.c_str(), strlen(http_req_cfg->request_URI.c_str()+1)); + 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] server url = %s\n", internet_config.url.c_str()); //const char* url = internet_config.url;