protected void Init() { ExpectedResponse = Response.Single; TimeoutValue = PacketParser.DefaultParseTimeout; DestinationAddress = null; DestinationNode = null; Filter = null; }
/// <summary> /// Reads remote module basic information /// </summary> /// <param name="sender">XBee module that will send AT command to remote target</param> /// <param name="remoteXbee">XBee module which infomation will be retrieved</param> /// <returns>Remote XBee basic infomation</returns> public static XBeeConfiguration Read(XBeeApi sender, XBeeAddress remoteXbee) { return(new XBeeConfiguration(sender, remoteXbee) { ApiMode = Common.ApiMode.Read(sender, remoteXbee), HardwareVersion = Common.HardwareVersion.Read(sender, remoteXbee), Firmware = Common.Firmware.Read(sender, remoteXbee), SerialNumber = Common.SerialNumber.Read(sender, remoteXbee), NodeIdentifier = Common.NodeIdentifier.Read(sender, remoteXbee) }); }
public bool Equals(XBeeAddress other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Arrays.AreEqual(other.Address, Address)); }
public IRequest ToAll() { DestinationAddress = XBeeAddress64.Broadcast; return(this); }
public IRequest To(XBeeAddress destination) { DestinationAddress = destination; return(this); }
public IRequest To(ulong serialNumber) { DestinationAddress = new XBeeAddress64(serialNumber); return(this); }
public IRequest To(ushort networkAddress) { DestinationAddress = new XBeeAddress16(networkAddress); return(this); }
private XBeeConfiguration(XBeeApi xbee, XBeeAddress remoteXbee = null) { _xbee = xbee; _remoteXbee = remoteXbee; }