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 } }
internal BlynkCommand(BlynkCommandType commandType, UInt16 messageId) : this(commandType, messageId, true) { }