/// <summary>
 /// Method for serializing the command fields </summary>
 public override int[] Serialize()
 {
     SerializeHeader(_serializer);
     _serializer.SerializeUInt8(_packetContents.Length);
     _serializer.SerializeUInt8Array(_packetContents);
     return(_serializer.GetPayload());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Method for serializing the command fields </summary>
 public override int[] Serialize()
 {
     SerializeHeader(_serializer);
     _serializer.SerializeEzspValueId(_valueId);
     _serializer.SerializeUInt8(_value.Length);
     _serializer.SerializeUInt8Array(_value);
     return(_serializer.GetPayload());
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Method for serializing the command fields </summary>
 public override int[] Serialize()
 {
     SerializeHeader(_serializer);
     _serializer.SerializeEmberAesMmoHashContext(_context);
     _serializer.SerializeBool(_finalize);
     _serializer.SerializeUInt8(_length);
     _serializer.SerializeUInt8Array(_data);
     return(_serializer.GetPayload());
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Method for serializing the command fields </summary>
 public override int[] Serialize()
 {
     SerializeHeader(_serializer);
     _serializer.SerializeUInt16(_sender);
     _serializer.SerializeEmberApsFrame(_apsFrame);
     _serializer.SerializeUInt8(_messageTag);
     _serializer.SerializeUInt8(_messageContents.Length);
     _serializer.SerializeUInt8Array(_messageContents);
     return(_serializer.GetPayload());
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Method for serializing the command fields </summary>
 public override int[] Serialize()
 {
     SerializeHeader(_serializer);
     _serializer.SerializeEmberOutgoingMessageType(_type);
     _serializer.SerializeUInt16(_indexOrDestination);
     _serializer.SerializeEmberApsFrame(_apsFrame);
     _serializer.SerializeUInt8(_messageTag);
     _serializer.SerializeUInt8(_messageContents.Length);
     _serializer.SerializeUInt8Array(_messageContents);
     return(_serializer.GetPayload());
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Method for serializing the command fields </summary>
 public override int[] Serialize()
 {
     SerializeHeader(_serializer);
     _serializer.SerializeBool(_action);
     _serializer.SerializeBool(_useCca);
     _serializer.SerializeEmberGpAddress(_addr);
     _serializer.SerializeUInt8(_gpdCommandId);
     _serializer.SerializeUInt8(_gpdAsdu.Length);
     _serializer.SerializeUInt8Array(_gpdAsdu);
     _serializer.SerializeUInt8(_gpepHandle);
     _serializer.SerializeUInt16(_gpTxQueueEntryLifetimeMs);
     return(_serializer.GetPayload());
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Serialise the contents of the EZSP structure. </summary>
 public int[] Serialize(EzspSerializer serializer)
 {
     serializer.SerializeUInt8Array(_contents);
     return(serializer.GetPayload());
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Serialise the contents of the EZSP structure. </summary>
 public int[] Serialize(EzspSerializer serializer)
 {
     serializer.SerializeUInt8Array(_result);
     serializer.SerializeUInt32(_length);
     return(serializer.GetPayload());
 }