Files
2024-06-10 15:06:37 +02:00

32 lines
826 B
C#

namespace Common.Hardware.Interfaces.Protocols.SIRT.Payloads
{
using Common.Hardware.Interfaces.Ports.SIRT.Messages.Responses;
using System;
public class Bup : FromAirResponse
{
public Bup(FromAirResponse response) : base(response)
{
var payload = response.Payload;
var index = 0;
this.AppCode = payload[index++];
this.Counter = payload[index++];
this.Serial = BitConverter.ToUInt32(payload, index += 4);
this.Reading = BitConverter.ToUInt32(payload, index += 4);
this.Alarm = payload[index++];
}
public Byte AppCode { get; }
public Byte Counter { get; }
public UInt32 Serial { get; }
public UInt32 Reading { get; }
public Byte Alarm { get; }
}
}