Simple mbed OS sockets example for mbed OS5 & W5500 SPI Ethernet controller. This is a quick example of a simple HTTP client program using the network-socket API that is provided as a part of mbed-os. The program brings up an underlying network interface, and uses it to perform an HTTP transaction over a TCPSocket.

Dependencies:   W5500Interface easy-connect

Fork of mbed-os-example-mbed5-sockets by mbed-os-examples

Result

  • Serial Terminal Log

/media/uploads/Bongjun/img021.png

Revision:
48:f2739ac5cb01
Parent:
40:afef93b6d854
Child:
55:8165a6a797a4
--- a/mbed_app.json	Wed Jun 06 15:00:09 2018 +0100
+++ b/mbed_app.json	Mon Jun 18 09:15:03 2018 +0100
@@ -1,10 +1,8 @@
 {
     "target_overrides": {
         "*": {
-            "platform.stdio-convert-newlines": true
-        },
-        "UBLOX_EVK_ODIN_W2": {
-            "target.device_has_remove": ["EMAC"]
+            "platform.stdio-convert-newlines": true,
+            "target.network-default-interface-type": "ETHERNET"
         }
     }
 }