This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088

Fork of libMiMic by Ryo Iizuka

Revision:
115:fa79286d8ea4
Parent:
109:18f12ac01097
--- a/mbed/TcpSocket.h	Sat Jun 04 06:51:04 2016 +0000
+++ b/mbed/TcpSocket.h	Fri Feb 24 04:43:41 2017 +0000
@@ -27,7 +27,7 @@
          * @param i_host_addr
          * must be IPv4 address format.
          */
-        bool connect(const IpAddr& i_addr,unsigned short i_port);
+        bool connect(const IpAddr& i_addr,unsigned short i_port, unsigned int timeout=5*1000);
         bool send(const void* i_tx,unsigned short i_tx_size);
         /**
          * This function return recieved data and size.
@@ -40,8 +40,8 @@
          * n==0 Timeout (connection still established)
          * n>0  Success. readable data size in i_rx.
          */
-        int precv(const void* &i_rx);
-        int precv(const char* &i_rx);
+        int precv(const void* &i_rx, unsigned int timeout=5*1000);
+        int precv(const char* &i_rx, unsigned int timeout=5*1000);
         /**
          * true if precv has data.
          * This can avoid the block of precv.