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.

20 lines
425 B

  1. /*
  2. NETBIOS MODULE
  3. Copyright (C) 2017-2018 by Xose Pérez <xose dot perez at gmail dot com>
  4. */
  5. #if NETBIOS_SUPPORT
  6. #include <ESP8266NetBIOS.h>
  7. void netbiosSetup() {
  8. static WiFiEventHandler _netbios_wifi_onSTA = WiFi.onStationModeGotIP([](WiFiEventStationModeGotIP ipInfo) {
  9. NBNS.begin(getSetting("hostname").c_str());
  10. DEBUG_MSG_P(PSTR("[NETBIOS] Configured\n"));
  11. });
  12. }
  13. #endif // NETBIOS_SUPPORT