public FHDR(IPayloadPart parent) : base(parent) { Length = 7 + (Parent.RawData[4] & 0x03); DevAddr = new DevAddr(this); FCtrl = new FCtrl(this); FCnt = new FCnt(this); FOpts = new FOpts(this); }
public JoinAcceptMessage(IPayloadPart parent, byte[] appKey) : base(parent) { AppNonce = new AppNonce(this); NetID = new NetID(this); DevAddr = new DevAddr(this); DLSettings = new DLsettings(this); RxDelay = new RxDelay(this); CFList = new PayloadPart <JoinAcceptMessage>(this, 12, RawData.Length - 12); _calculatedMIC = new Lazy <CalculatedMIC>(() => new CalculatedMIC(this, appKey)); }