AP mode

Dependencies:   NetworkSocketAPI WizFi310Interface mbed

Fork of WizFi310_TCP_Echo_Server_Example by WIZnet

Revision:
7:e5500683781b
Parent:
3:4b4eb90875bd
--- a/tts.cpp	Tue Oct 03 02:46:16 2017 +0000
+++ b/tts.cpp	Tue Oct 03 03:43:34 2017 +0000
@@ -11,13 +11,7 @@
     socket->send(buf, MAX_BUF_SIZE);
     extractVoiceData(socket, content_length);
     printf("play start! : %d\n", content_length);
-    //player->sendDataBlock(socket, content_length);
-    int sizeSent = 0;
-    while (socket->recv(&c, sizeof(c)) >= 0 && sizeSent < content_length) {
-        //printf("%c", c);
-        sizeSent++;
-    }
-    printf("\nplay size: %d\n", sizeSent);
+    player->sendDataBlock(socket, content_length);
 }
 
 void playTTS(TCPSocket *socket, char* buf) {