I have problem. I tryed to read my web page information. I am using this code
#include <ESP8266WiFi.h>
const char* ssid = "Signalizacija";
const char* password = "20170214";
const char* host = "ortex.lt";
String line;
void setup()
{
Serial.begin(115200);
Serial.println();
Serial.printf("Connecting to %s ", ssid);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.print(".");
}
Serial.println(" connected");
}
void loop()
{
WiFiClient client;
Serial.printf("\n[Connecting to %s ... ", host);
if (client.connect(host, 80))
{
Serial.println("connected]");
Serial.println("[Sending a request]");
String url = "/testas.php";
client.print(String("GET /") + url + " HTTP/1.1\r\n" +
"Host: " + host + "\r\n" +
"Connection: close\r\n" +
"\r\n"
);
Serial.println("[Response:]");
while (client.connected())
{
line = client.readStringUntil('\r');
Serial.print(line);
}
client.stop();
Serial.println("\n[Disconnected]");
}
else
{
Serial.println("connection failed!]");
client.stop();
}
delay(5000);
}
I got this information, but I want to read only word which I underline red color "saule". How need separate this word from total html code? Could somebody give to my advice how to do it?