Chat freely about anything...

User avatar
By ming wing
#47781 I am new to ESP8266.
I have been able to get it all correctly hooked up and I can get my ESP-01 board to connect to my Wifi router. Now how to get it to read a tweet or lets say the current weather data from an internet page and print it to Serial Port. Here is the code that I am running at the moment:

Many Thanks for your help.



#include "ESP8266WiFi.h"
// WiFi parameters
const char* ssid = "ZZZZ";
const char* password = "YYYY";

void setup(void)
{
// Start Serial
Serial.begin(115200);

// Connect to WiFi
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");
// Print the IP address
Serial.println(WiFi.localIP());
}
void loop() {
}