namespace Common.Hardware.SIRT.Tasks { using System; public class IdentifySIRTTask : ReadRegisterTask { public IdentifySIRTTask() { this.RequestAddress = 0x11001820; this.ResponseAddress = 0x11001820; this.Length = 0x08; } public override void Push(SIRTMessage response) { if (response.Command == SIRTConstants.ACKN_ANSW) { this.Payload = response.Payload; if (this.Payload?.Length == 8) { this.SirtId = BitConverter.ToString(this.Payload); this.Frequency = this.SirtId[10] == '0' ? 868 : 433; this.SetCompleted(); } } } } }