public JoinRequestMessage(IPayloadPart parent, byte[] appKey) : base(parent) { AppEUI = new AppEUI(this); DevEUI = new DevEUI(this); DevNonce = new DevNonce(this); _calculatedMIC = new Lazy <CalculatedMIC>(() => new CalculatedMIC(this, appKey)); }
public DataMessage(IPayloadPart parent, byte[] nwkSKey, byte[] appSKey, int fCntMsbSeed) : base(parent) { this.nwkSKey = nwkSKey; Fhdr = new FHDR(this); FPort = new FPort(this); FrmPayload = new FRMPayload(this, nwkSKey, appSKey); _calculatedMIC = new Lazy <CalculatedMIC>(() => new CalculatedMIC(this, nwkSKey, fCntMsbSeed)); }
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)); }
protected MACPayload(IPayloadPart parent) : base(parent) { /* NOP */ }
public FPort(IPayloadPart parent) : base(parent) { /* NOP */ }
public DevNonce(IPayloadPart parent) : base(parent) { /* */ }
public FRMPayload(IPayloadPart parent, byte[] nwkSKey, byte[] appSKey) : base(parent) { NwkSKey = nwkSKey; AppSKey = appSKey; }
public MHDR(IPayloadPart parent) : base(parent) { /* NOP */ }
public DevEUI(IPayloadPart parent) : base(parent) { /* */ }
public FOpts(IPayloadPart parent) : base(parent) { /* NOP */ }
public DLsettings(IPayloadPart parent) : base(parent) { /* */ }
public NetID(IPayloadPart parent) : base(parent) { /* */ }
public PayloadPart(IPayloadPart parent, int start, int lengt) : base(parent) { Start = start; Length = lengt; }
public RxDelay(IPayloadPart parent) : base(parent) { /* */ }
public FCtrl(IPayloadPart parent) : base(parent) { /* NOP */ }
public AppEUI(IPayloadPart parent) : base(parent) { /* */ }
protected PayloadPartBase(IPayloadPart parent) { Parent = (TParent)parent; }