User Tools

Site Tools


inhabitat:kaunas:day02

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

inhabitat:kaunas:day02 [2026/05/26 14:04] – created harley.larainhabitat:kaunas:day02 [2026/05/26 14:05] (current) harley.lara
Line 3: Line 3:
 ===== WiFi Example ===== ===== WiFi Example =====
  
 +<file c++ cpp.cpp>
 +#include <WiFi.h>
 +
 +const char* ssid = "Your_SSID";
 +const char* password = "Your_PASSWORD";
 +
 +void setup() {
 +  Serial.begin(115200);
 +  WiFi.begin(ssid, password);
 +
 +  while (WiFi.status() != WL_CONNECTED) {
 +    delay(500);
 +    Serial.print(".");
 +  }
 +  Serial.println("Connected to Wi-Fi");
 +  Serial.print("IP Address: ");
 +  Serial.println(WiFi.localIP());
 +  Serial.print("Gateway (Router IP): ");
 +  Serial.println(WiFi.gatewayIP()); // Get router's IP address
 +}
 +
 +void loop() {
 +  // Empty loop
 +}
 +</file>
inhabitat/kaunas/day02.1779797057.txt.gz · Last modified: 2026/05/26 14:04 by harley.lara