Exemple #1
0
 /// <summary>
 /// Method for serializing the command fields </summary>
 public override int[] Serialize()
 {
     SerializeHeader(_serializer);
     _serializer.SerializeUInt32(_options);
     _serializer.SerializeEmberGpAddress(_addr);
     _serializer.SerializeUInt8(_commMode);
     _serializer.SerializeUInt16(_sinkNetworkAddress);
     _serializer.SerializeUInt16(_sinkGroupId);
     _serializer.SerializeUInt16(_assignedAlias);
     _serializer.SerializeEmberEui64(_sinkIeeeAddress);
     _serializer.SerializeEmberKeyData(_gpdKey);
     return(_serializer.GetPayload());
 }
Exemple #2
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());
 }
Exemple #3
0
 /// <summary>
 /// Serialise the contents of the EZSP structure. </summary>
 public int[] Serialize(EzspSerializer serializer)
 {
     serializer.SerializeEmberGpSinkTableEntryStatus(_status);
     serializer.SerializeUInt32(_options);
     serializer.SerializeEmberGpAddress(_gpd);
     serializer.SerializeUInt8(_deviceId);
     serializer.SerializeEmberGpSinkListEntry(_sinkList);
     serializer.SerializeUInt16(_assignedAlias);
     serializer.SerializeUInt8(_groupcastRadius);
     serializer.SerializeUInt8(_securityOptions);
     serializer.SerializeUInt32(_gpdSecurityFrameCounter);
     serializer.SerializeEmberKeyData(_gpdKey);
     return(serializer.GetPayload());
 }
Exemple #4
0
 /// <summary>
 /// Method for serializing the command fields </summary>
 public override int[] Serialize()
 {
     SerializeHeader(_serializer);
     _serializer.SerializeEmberGpAddress(_addr);
     return(_serializer.GetPayload());
 }