protected override void AdsResponseIsChanged() { adsState = new AdsState(); adsState.State = BitConverter.ToUInt16(this.AdsResponse, 4); adsState.DeviceState = BitConverter.ToUInt16(this.AdsResponse, 6); }
/// <summary> /// Read the ads state /// </summary> /// <returns></returns> public new AdsState ReadState() { AdsState result = new AdsState(); stateInfo = client.ReadState(); result.State = (ushort)((short)stateInfo.AdsState); result.DeviceState = (ushort)((short)stateInfo.DeviceState); return result; }