Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: RZ_A2M_Mbed_samples_20201012 RZ_A2M_Mbed_samples
Diff: source/https_request.h
- Revision:
- 40:8fe3b866f1f4
- Parent:
- 37:98d83ca14b7b
diff -r a8d157986ad8 -r 8fe3b866f1f4 source/https_request.h
--- a/source/https_request.h Mon Aug 12 11:45:31 2019 +0200
+++ b/source/https_request.h Wed Sep 16 14:40:45 2020 +0900
@@ -91,7 +91,11 @@
protected:
virtual nsapi_error_t connect_socket(char *host, uint16_t port) {
- return ((TLSSocket*)_socket)->connect(host, port);
+ SocketAddress tcp_addr;
+ NetworkInterface::get_default_instance()->gethostbyname(host, &tcp_addr);
+ tcp_addr.set_port(port);
+
+ return ((TLSSocket*)_socket)->connect(tcp_addr);
}
};