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