Aktualizace prikladu

This commit is contained in:
Pavel Brychta 2018-07-04 15:33:58 +02:00
parent d2134e6397
commit febbcefcb6

View File

@ -2,8 +2,8 @@
#include <ESP8266WebServer.h>
#include <ArduinoOTA.h>
#include <EEPROM.h>
#include "src/espnbns/espnbns.h"
#include "src/WiFiConfig/WiFiConfig.h"
#include <ESP8266NetBIOS.h>
#include <WiFiConfig.h>
// 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();
}