From 0fd6bc167e874c8a018f11ed8232ed97be05e6b7 Mon Sep 17 00:00:00 2001 From: Michal Paszta Date: Thu, 19 Dec 2019 13:54:34 +0200 Subject: [PATCH 1/2] Update mbed-os version to 5.15 --- mbed-os.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mbed-os.lib b/mbed-os.lib index 480dffc..d8fe271 100644 --- a/mbed-os.lib +++ b/mbed-os.lib @@ -1 +1 @@ -https://github.com/ARMmbed/mbed-os/#b6e5a0a8afa34dec9dae8963778aebce0c82a54b +https://github.com/ARMmbed/mbed-os/#64853b354fa188bfe8dbd51e78771213c7ed37f7 From 37cea773bb995b7d0437392d05202089475cc0f0 Mon Sep 17 00:00:00 2001 From: Michal Paszta Date: Tue, 26 Nov 2019 13:01:17 +0200 Subject: [PATCH 2/2] Remove usage of deprecated string-based API --- main.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 0a9441d..0c49aa5 100644 --- a/main.cpp +++ b/main.cpp @@ -101,9 +101,13 @@ int main() printf("Success\n\n"); printf("MAC: %s\n", wifi->get_mac_address()); - printf("IP: %s\n", wifi->get_ip_address()); - printf("Netmask: %s\n", wifi->get_netmask()); - printf("Gateway: %s\n", wifi->get_gateway()); + SocketAddress a; + wifi->get_ip_address(&a); + printf("IP: %s\n", a.get_ip_address()); + wifi->get_netmask(&a); + printf("Netmask: %s\n", a.get_ip_address()); + wifi->get_gateway(&a); + printf("Gateway: %s\n", a.get_ip_address()); printf("RSSI: %d\n\n", wifi->get_rssi()); wifi->disconnect();