Ejemplo n.º 1
0
        internal BlynkCommand(BlynkCommandType commandType, UInt16 messageId, bool appendLength)
        {
            this.MessageBuffer = new ByteProtocolBuffer();
            this.CommandType   = commandType;
            this.appendLength  = appendLength;

            this.MessageBuffer.Append(( byte )commandType);
            this.MessageBuffer.Append(messageId);
            if (this.appendLength)
            {
                this.MessageBuffer.Append(( UInt16 )0);                   // length minus header computed later
            }
        }
Ejemplo n.º 2
0
 internal BlynkCommand(BlynkCommandType commandType, UInt16 messageId)
     : this(commandType, messageId, true)
 {
 }