public ZigBeeStatus ExtensionStartup() { if (extensionStarted) { Log.Debug("DISCOVERY Extension: Already started"); return(ZigBeeStatus.INVALID_STATE); } Log.Debug("DISCOVERY Extension: Startup"); _networkManager.AddNetworkNodeListener(this); _networkManager.AddCommandListener(this); _networkDiscoverer = new ZigBeeNetworkDiscoverer(_networkManager); _networkDiscoverer.Startup(); if (_updatePeriod != 0) { StartScheduler(10); } extensionStarted = true; return(ZigBeeStatus.SUCCESS); }
public ZigBeeStatus ExtensionStartup(ZigBeeNetworkManager networkManager) { _logger.Debug("DISCOVERY Extension: Startup"); _networkManager = networkManager; _networkManager.AddNetworkNodeListener(this); _networkManager.AddCommandListener(this); networkDiscoverer = new ZigBeeNetworkDiscoverer(_networkManager); networkDiscoverer.Startup(); if (_updatePeriod != 0) { StartScheduler(10); } extensionStarted = true; return(ZigBeeStatus.SUCCESS); }