public EzspMessageSentHandler(int[] inputBuffer) : base(inputBuffer) { _type = deserializer.DeserializeEmberOutgoingMessageType(); _indexOrDestination = deserializer.DeserializeUInt16(); _apsFrame = deserializer.DeserializeEmberApsFrame(); _messageTag = deserializer.DeserializeUInt8(); _status = deserializer.DeserializeEmberStatus(); int messageLength = deserializer.DeserializeUInt8(); _messageContents = deserializer.DeserializeUInt8Array(messageLength); }
public void SerializeEmberOutgoingMessageType(EmberOutgoingMessageType messageType) { _buffer[_length++] = (int)messageType; }
/// <summary> /// The type to set as <see cref="EmberOutgoingMessageType"/> </summary> public void SetType(EmberOutgoingMessageType type) { _type = type; }
public void SendUnicast(EmberOutgoingMessageType type, ushort indexOrDestination, EmberApsFrame apsFrame, byte messageTag, byte[] messageContents) { BackgroundQueue.QueueTask(() => Ezsp.SendUnicast(type, indexOrDestination, apsFrame, messageTag, messageContents)); }