You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
744 B
33 lines
744 B
#include <WiFi.h>
|
|
|
|
const char* ssid = "tksteti";
|
|
const char* password = "ProsimTeNevim";
|
|
|
|
const char* deviceName = "ESP-VasePrijmeni";
|
|
|
|
void setup() {
|
|
Serial.begin(115200); //nastaveni Serioveho monitoru
|
|
delay(10);
|
|
|
|
WiFi.setHostname(deviceName);
|
|
|
|
Serial.println();
|
|
Serial.print("Pripojuji se k WiFi: ");
|
|
Serial.println();
|
|
|
|
WiFi.begin(ssid,password); //začátek připojování
|
|
while(WiFi.status() != WL_CONNECTED) { //připojování
|
|
delay(500);
|
|
Serial.print(".");
|
|
}
|
|
|
|
Serial.println();
|
|
Serial.println("WiFi připojeno"); // po připojení
|
|
Serial.print("IP adresa: ");
|
|
Serial.println(WiFi.localIP()); //zobrazení IP adresy
|
|
Serial.print("Hostname: ");
|
|
Serial.println(WiFi.getHostname());
|
|
}
|
|
void loop(){
|
|
|
|
}
|