From febbcefcb6a427053c1ad721b57e2dc3ad41a821 Mon Sep 17 00:00:00 2001 From: Pablo2048 Date: Wed, 4 Jul 2018 15:33:58 +0200 Subject: [PATCH] Aktualizace prikladu --- .../WiFiConfig_simple_test/WiFiConfig_simple_test.ino | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/WiFiConfig_simple_test/WiFiConfig_simple_test.ino b/examples/WiFiConfig_simple_test/WiFiConfig_simple_test.ino index aebb5bc..76a9125 100644 --- a/examples/WiFiConfig_simple_test/WiFiConfig_simple_test.ino +++ b/examples/WiFiConfig_simple_test/WiFiConfig_simple_test.ino @@ -2,8 +2,8 @@ #include #include #include -#include "src/espnbns/espnbns.h" -#include "src/WiFiConfig/WiFiConfig.h" +#include +#include // Plati pro desticku Witty s modulem ESP-12E #define PIN_FORCE_CONFIG 4 @@ -16,7 +16,6 @@ ESP8266WebServer wwwserver(80); // webovy server String content; -NBNS nbns; // Netbios (xPablo.cz) static void handleRoot(void) { @@ -77,7 +76,7 @@ void ICACHE_FLASH_ATTR setup() if (strlen(WiFiDeviceName) > 0) { - nbns.begin(WiFiDeviceName); + NBNS.begin(WiFiDeviceName); ArduinoOTA.setHostname(WiFiDeviceName); } @@ -125,5 +124,4 @@ void loop() { wwwserver.handleClient(); // osetrujeme praci serveru ArduinoOTA.handle(); - nbns.poll(); }