Exemple #1
0
 /// <summary>
 /// Method for serializing the command fields </summary>
 public override int[] Serialize()
 {
     SerializeHeader(_serializer);
     _serializer.SerializeUInt8(_endpoint);
     _serializer.SerializeUInt16(_profileId);
     _serializer.SerializeUInt16(_deviceId);
     _serializer.SerializeUInt8(_appFlags);
     _serializer.SerializeUInt8(_inputClusterList.Length);
     _serializer.SerializeUInt8(_outputClusterList.Length);
     _serializer.SerializeUInt16Array(_inputClusterList);
     _serializer.SerializeUInt16Array(_outputClusterList);
     return(_serializer.GetPayload());
 }
Exemple #2
0
 /// <summary>
 /// Method for serializing the command fields </summary>
 public override int[] Serialize()
 {
     SerializeHeader(_serializer);
     _serializer.SerializeUInt16(_destination);
     _serializer.SerializeUInt8(_relayList.Length);
     _serializer.SerializeUInt16Array(_relayList);
     return(_serializer.GetPayload());
 }