inhabitat:kaunas:day02
Differences
This shows you the differences between two versions of the page.
| inhabitat:kaunas:day02 [2026/05/26 14:04] – created harley.lara | inhabitat:kaunas:day02 [2026/05/26 14:05] (current) – harley.lara | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== WiFi Example ===== | ===== WiFi Example ===== | ||
| + | <file c++ cpp.cpp> | ||
| + | #include < | ||
| + | |||
| + | const char* ssid = " | ||
| + | const char* password = " | ||
| + | |||
| + | void setup() { | ||
| + | Serial.begin(115200); | ||
| + | WiFi.begin(ssid, | ||
| + | |||
| + | while (WiFi.status() != WL_CONNECTED) { | ||
| + | delay(500); | ||
| + | Serial.print(" | ||
| + | } | ||
| + | Serial.println(" | ||
| + | Serial.print(" | ||
| + | Serial.println(WiFi.localIP()); | ||
| + | Serial.print(" | ||
| + | Serial.println(WiFi.gatewayIP()); | ||
| + | } | ||
| + | |||
| + | void loop() { | ||
| + | // Empty loop | ||
| + | } | ||
| + | </ | ||
inhabitat/kaunas/day02.txt · Last modified: 2026/05/26 14:05 by harley.lara