Fork of the espurna firmware for `mhsw` switches
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.
|
/*
|
|
|
|
NETBIOS MODULE
|
|
|
|
Copyright (C) 2017-2018 by Xose Pérez <xose dot perez at gmail dot com>
|
|
|
|
*/
|
|
|
|
#if NETBIOS_SUPPORT
|
|
|
|
#include <ESP8266NetBIOS.h>
|
|
|
|
void netbiosSetup() {
|
|
static WiFiEventHandler _netbios_wifi_onSTA = WiFi.onStationModeGotIP([](WiFiEventStationModeGotIP ipInfo) {
|
|
NBNS.begin(getHostname().c_str());
|
|
DEBUG_MSG_P(PSTR("[NETBIOS] Configured\n"));
|
|
});
|
|
}
|
|
|
|
#endif // NETBIOS_SUPPORT
|