TCPEchoServer for Murata Type-YD WiFi module

Dependencies:   PowerControl SNICInterface mbed-rtos mbed

Fork of TCPEchoServer by Toyomasa Watarai

mbed 上で動作する TCPEchoServer です(ムラタ製 TypeYDモジュール使用)。

ターミナルを接続して実行すると、割り当てられたIPアドレスが表示されます。 対向機から実行する Python スクリプトは、こちら です(IPアドレスを書き換えて使用して下さい)。

Revision:
8:6e121d9ce02b
Parent:
7:27b297e209a6
--- a/main.cpp	Fri Jan 23 10:15:33 2015 +0000
+++ b/main.cpp	Tue Feb 10 05:25:09 2015 +0000
@@ -49,7 +49,7 @@
     while (true) {
         printf("\nWait for new connection...\n");
         TCPSocketConnection client;
-        server.accept(&client);
+        server.accept(client);
         client.set_blocking(false, 1500); // Timeout after (1.5)s
         
         printf("Connection from: %s\n", client.get_address());