protected void StartDiscovery(ZigBeeNode node)
        {
            ZigBeeNodeServiceDiscoverer nodeDiscoverer = new ZigBeeNodeServiceDiscoverer(_networkManager, node);

            _nodeDiscovery[node.IeeeAddress] = nodeDiscoverer;
            nodeDiscoverer.StartDiscovery();
        }
Beispiel #2
0
 protected void StartDiscovery(ZigBeeNode node)
 {
     lock (_nodeDiscovery)
     {
         ZigBeeNodeServiceDiscoverer nodeDiscoverer = new ZigBeeNodeServiceDiscoverer(_networkManager, node);
         nodeDiscoverer.MeshUpdateTasks   = MeshUpdateTasks;
         _nodeDiscovery[node.IeeeAddress] = nodeDiscoverer;
         nodeDiscoverer.StartDiscovery();
     }
 }
        public void NodeAdded(ZigBeeNode node)
        {
            if (nodeDiscovery.ContainsKey(node.IeeeAddress))
            {
                return;
            }

            _logger.Debug("DISCOVERY Extension: Adding discoverer for {IeeeAddress}", node.IeeeAddress);

            ZigBeeNodeServiceDiscoverer nodeDiscoverer = new ZigBeeNodeServiceDiscoverer(_networkManager, node);

            nodeDiscovery[node.IeeeAddress] = nodeDiscoverer;
            nodeDiscoverer.StartDiscovery();
        }