1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

Added String hostname support to WiFiClient and WiFiClientSecure (#3349)

* Added String hostname support to WiFiClient and WiFiClientSecure

* Typo in WiFi
This commit is contained in:
Rick van Schijndel
2017-12-29 05:58:36 +01:00
committed by Develo
parent 0b2df35117
commit 28803540a2
4 changed files with 12 additions and 0 deletions

View File

@ -102,6 +102,11 @@ int WiFiClient::connect(const char* host, uint16_t port)
return 0;
}
int WiFiClient::connect(const String host, uint16_t port)
{
return connect(host.c_str(), port);
}
int WiFiClient::connect(IPAddress ip, uint16_t port)
{
ip_addr_t addr;