#include <WiFi.h>
const char* ssid = "Wokwi-GUEST";
void setup() {
Serial1.begin(115200);
Serial1.println("Connecting to WiFi...");
WiFi.mode(WIFI_STA);
WiFi.begin(ssid);
while (WiFi.status() != WL_CONNECTED) {
delay(100);
Serial1.print(".");
}
Serial1.println("");
Serial1.print("Connected to WiFi network: ");
Serial1.println(WiFi.SSID());
Serial1.print("Your IP address is ");
Serial1.println(WiFi.localIP());
}
void loop() {
delay(1000); // TODO: Create something cool
}
Loading
pi-pico-w
pi-pico-w