示例#1
0
        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);
        }
示例#2
0
 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;
 }
示例#4
0
 public void SendUnicast(EmberOutgoingMessageType type, ushort indexOrDestination, EmberApsFrame apsFrame, byte messageTag, byte[] messageContents)
 {
     BackgroundQueue.QueueTask(() => Ezsp.SendUnicast(type, indexOrDestination, apsFrame, messageTag, messageContents));
 }