Ivan Grokhotkov aa4a7804ec examples/protocols/asio: use common network component 7 years ago
..
main aa4a7804ec examples/protocols/asio: use common network component 6 years ago
CMakeLists.txt aa4a7804ec examples/protocols/asio: use common network component 6 years ago
Makefile aa4a7804ec examples/protocols/asio: use common network component 6 years ago
README.md aa4a7804ec examples/protocols/asio: use common network component 6 years ago
asio_tcp_server_test.py aa4a7804ec examples/protocols/asio: use common network component 6 years ago
sdkconfig.defaults 1ef13c524c asio: initial idf port of asio library without ssl 7 years ago

README.md

Asio TCP echo server example

Simple Asio TCP echo server using WiFi STA or Ethernet.

Example workflow

  • Wi-Fi or Ethernet connection is established, and IP address is obtained.
  • Asio TCP server is started on port number defined through make menuconfig.
  • Server receives and echoes back messages transmitted from client.

Running the example

  • Run make menuconfig to configure Wi-Fi or Ethernet. See "Establishing Wi-Fi or Ethernet Connection" section in examples/protocols/README.md for more details.
  • Set server port number in menuconfig, "Example configuration".
  • Run make flash monitor to build and upload the example to your board and connect to it's serial terminal.
  • Wait for the board to connect to WiFi or Ethernet (note the IP address).
  • You can now send a TCP message and check it is repeated, for example using netcat nc IP PORT.

See the README.md file in the upper level 'examples' directory for more information about examples.