HTTPClient client;
if (client.begin(noipServer, 80)) {
Serial.println("Connected to noip");
client.println("GET /nic/update?hostname=seaurchin.ddns.net HTTP/1.0");
client.println("Host: dynupdate.no-ip.com");
client.println("Authorization: seaurchin@gmail.com:secretPwd");
client.println("User-Agent: San NodeMCU Client/0.0 seaurchin@gmail.com");
client.println();
//Wait for response
while (client.connected())
{
// stay in this loop until the server closes the connection
while (client.available())
{
// The server will not close the connection until it has sent the last packet
// and this buffer is empty
char read_char = client.read();
Serial.write(read_char);
}
}
// close your end after the server closes its end
client.stop();
the above code is not working, I want to be able to notify no-ip server for ip address the NodeMCU client is running on