This is a very simple guide, reviewing the steps required to get Blinky working on an Mbed OS platform.

Dependencies:   RemoteIR

Revision:
138:e829be898713
Parent:
137:81b5a1672c6a
Child:
139:78c21d98cff6
Child:
140:2252b2df4bc6
--- a/main.cpp	Tue May 26 00:30:01 2020 +0000
+++ b/main.cpp	Tue May 26 07:25:56 2020 +0000
@@ -1,5 +1,5 @@
 #include "mbed.h"
-#define SERVER_IP "192.168.0.10"
+#define SERVER_IP "192.168.1.16"
 #define SERVER_PORT 50000
 Serial pc(USBTX, USBRX, 115200);
 WiFiInterface *wifi;
@@ -53,7 +53,7 @@
     }
     pc.printf("Connecting to %s...\r\n", MBED_CONF_APP_WIFI_SSID);
     int ret = wifi->connect(MBED_CONF_APP_WIFI_SSID,
-    MBED_CONF_APP_WIFI_PASSWORD, NSAPI_SECURITY_WPA_WPA2);
+    MBED_CONF_APP_WIFI_PASSWORD, NSAPI_SECURITY_WPA2);
     if (ret != 0)
     {
         pc.printf("Connection error!!\r\n");
@@ -62,11 +62,11 @@
 
     pc.printf("Success!!\r\n");
     pc.printf("RSSI: %d\r\n", wifi->get_rssi());
-    wifi->get_ip_address();
+    wifi->get_ip_address(&sockAddr)/;
     pc.printf("IP: %s, ", sockAddr.get_ip_address());
 //wifi->get_netmask(&sockAddr);
 //pc.printf("Netmask: %s, ", sockAddr.get_ip_address()); pc.printf("Netmask: %s, ", wifi->get_netmask());
-    wifi->get_gateway();
+    wifi->get_gateway(&sockAddr);
     pc.printf("Gateway: %s\r\n", sockAddr.get_ip_address());
 
 // Open a TCP socket on the network interface, and create a TCP connection to a Server