virtual int connect( const char * host, uint16_t port );
virtual int connect( const char * host, uint16_t port );
Connects to a TCP server.
|
Parameters |
Description |
|
uint16_t port |
TCP port to be connected |
|
IPAddress |
String, e.g. "172.21.84.11", that denotes server address |
1 if connected, 0 otherwise.
client.connect("www.somewebsite.com", 80); // client is an instance of LWiFiClient or LGPRSClient.LTcpClient.h