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));
 }
Beispiel #2
0
 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));
 }
Beispiel #3
0
 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);
 }
Beispiel #4
0
 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));
 }
Beispiel #5
0
 protected MACPayload(IPayloadPart parent) : base(parent)
 { /* NOP */
 }
Beispiel #6
0
 public FPort(IPayloadPart parent) : base(parent)
 { /* NOP */
 }
Beispiel #7
0
 public DevNonce(IPayloadPart parent) : base(parent)
 { /* */
 }
Beispiel #8
0
 public FRMPayload(IPayloadPart parent, byte[] nwkSKey, byte[] appSKey) : base(parent)
 {
     NwkSKey = nwkSKey;
     AppSKey = appSKey;
 }
Beispiel #9
0
 public MHDR(IPayloadPart parent) : base(parent)
 { /* NOP */
 }
Beispiel #10
0
 public DevEUI(IPayloadPart parent) : base(parent)
 { /* */
 }
Beispiel #11
0
 public FOpts(IPayloadPart parent) : base(parent)
 { /* NOP */
 }
Beispiel #12
0
 public DLsettings(IPayloadPart parent) : base(parent)
 { /* */
 }
Beispiel #13
0
 public NetID(IPayloadPart parent) : base(parent)
 { /* */
 }
Beispiel #14
0
 public PayloadPart(IPayloadPart parent, int start, int lengt) : base(parent)
 {
     Start  = start;
     Length = lengt;
 }
Beispiel #15
0
 public RxDelay(IPayloadPart parent) : base(parent)
 { /* */
 }
Beispiel #16
0
 public FCtrl(IPayloadPart parent) : base(parent)
 { /* NOP */
 }
Beispiel #17
0
 public AppEUI(IPayloadPart parent) : base(parent)
 { /* */
 }
Beispiel #18
0
 protected PayloadPartBase(IPayloadPart parent)
 {
     Parent = (TParent)parent;
 }