1
0
mirror of https://github.com/arduino-libraries/ArduinoHttpClient.git synced 2025-06-11 17:08:08 +03:00

Make server name/address and port constructor arguments

This commit is contained in:
Sandeep Mistry
2016-06-17 10:56:27 -04:00
parent e3a6c20cd9
commit 0030d41287
3 changed files with 53 additions and 262 deletions

View File

@ -51,9 +51,9 @@ void loop()
int err =0;
WiFiClient c;
HttpClient http(c);
HttpClient http(c, kHostname);
err = http.get(kHostname, kPath);
err = http.get(kPath);
if (err == 0)
{
Serial.println("startedRequest ok");