|
@ -1,14 +1,21 @@ |
|
|
#include <WiFi.h> |
|
|
#include <WiFi.h> |
|
|
#include <WebServer.h> |
|
|
#include <WebServer.h> |
|
|
|
|
|
|
|
|
#define LED_BUILTIN 2 |
|
|
#define LED_BUILTIN 2 |
|
|
|
|
|
|
|
|
const char* ssid = "tksteti"; |
|
|
const char* ssid = "tksteti"; |
|
|
const char* password = "ProsimTeNevim"; |
|
|
const char* password = "ProsimTeNevim"; |
|
|
|
|
|
|
|
|
|
|
|
const char* deviceName = "ESP-VasePrijmeni"; |
|
|
|
|
|
|
|
|
WebServer server(80); |
|
|
WebServer server(80); |
|
|
|
|
|
|
|
|
void setup() { |
|
|
void setup() { |
|
|
Serial.begin(115200); |
|
|
Serial.begin(115200); |
|
|
pinMode(LED_BUILTIN,OUTPUT); |
|
|
pinMode(LED_BUILTIN,OUTPUT); |
|
|
|
|
|
|
|
|
|
|
|
WiFi.setHostname(deviceName); |
|
|
|
|
|
|
|
|
WiFi.begin(ssid,password); |
|
|
WiFi.begin(ssid,password); |
|
|
while(WiFi.status() != WL_CONNECTED) { |
|
|
while(WiFi.status() != WL_CONNECTED) { |
|
|
Serial.print("."); |
|
|
Serial.print("."); |
|
|