A small example of TCP server over ethernet for mbed-os.

Introduction

This example demonstrates how to use TCP server to send HTTP responses over Ethernet. You will need both a PC and a board with Ethernet port connected to the same local network.

How to use it ?

1. Program

Import this code into your compiler, select your platform from the top right, compile the code, load it onto your board.

2. Get IP address

Open a UART terminal and reset the board. The IP address of the target appear.

Basic HTTP server example
Target IP address is '192.168.0.5'

3. Open the web page

Copy the IP address of the board in a web browser and press Enter. The following web page appear.

/media/uploads/svastm/hello_world_tcp_server.jpg

no such method: }shortlog