コード例 #1
0
ファイル: BlynkCommand.cs プロジェクト: SupraBitKid/Blynk.NET
        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
            }
        }
コード例 #2
0
ファイル: BlynkCommand.cs プロジェクト: SupraBitKid/Blynk.NET
 internal BlynkCommand(BlynkCommandType commandType, UInt16 messageId)
     : this(commandType, messageId, true)
 {
 }