Example #1
0
        /// <summary>
        /// Constructor
        ///
        /// @param networkManager the {@link ZigBeeNetworkManager}
        /// @param ieeeAddress the {@link IeeeAddress} of the node
        /// @throws {@link IllegalArgumentException} if ieeeAddress is null
        /// </summary>
        public ZigBeeNode(IZigBeeNetwork network, IeeeAddress ieeeAddress)
        {
            this._network    = network;
            this.IeeeAddress = ieeeAddress ?? throw new ArgumentException("IeeeAddress can't be null when creating ZigBeeNode");
            //this._serviceDiscoverer = new ZigBeeNodeServiceDiscoverer(networkManager, this);

            network.AddCommandListener(this);
        }
Example #2
0
 public void UpdateNetworkManager(ZigBeeNetworkManager networkManager)
 {
     _network = networkManager;
 }
Example #3
0
 /// <summary>
 /// Constructor
 ///
 /// <param name="networkr">the <see cref="IZigBeeNetwork"></param>
 /// <param name="ieeeAddress">the <see cref="IeeeAddress"> of the node</param>
 /// <param name="networkAddress">the network address of the node</param>
 /// </summary>
 public ZigBeeNode(IZigBeeNetwork network, IeeeAddress ieeeAddress, ushort networkAddress)
     : this(network, ieeeAddress)
 {
     NetworkAddress = networkAddress;
 }