ESP8266Client client;
client.connect("192.168.100.100", 5000, "/abc.php");
client.read();
client.stop();
the ESP8266 Client
does not have 3rd parameter
can anyone provide me example on how to GET"192.168.100:5000/abc.php"
ESP8266Client client;
client.connect("192.168.100.100", 5000, "/abc.php");
client.read();
client.stop();
the ESP8266 Client
does not have 3rd parameter
can anyone provide me example on how to GET"192.168.100:5000/abc.php"
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
an example that uses it: https://github.com/esp8266/Arduino/blob/master/doc/esp8266wifi/client-examples.rst
so, probably something like:
host = "192.168.100.100";
port = 5000;
client.connect(host, port);
//I'm not sure if the port goes in the HTTP headers
client.print(String("GET /") + " HTTP/1.1\r\n" +
"Host: " + host + ":" + port + "\r\n" +
"Connection: close\r\n" +
"\r\n"
);
Serial.println("[Response:]");
while (client.connected() || client.available())
{
if (client.available())
{
String line = client.readStringUntil('\n');
Serial.println(line);
}
}
client.stop();