コード例 #1
0
ファイル: ProtocolController.cs プロジェクト: radu-v/mppt-cli
        public bool ReadParameter(McmParameter param)
        {
            Trace.Assert((param.Attrib & McmParameter.Attribute.Read) == McmParameter.Attribute.Read);
            SendReadCommand(param.Command);

            var commandResponse = GetCommandResponse(500, out var str);

            if (commandResponse)
            {
                commandResponse = param.TryParseCommandResponse(str);
            }

            responding = commandResponse;

            return(commandResponse);
        }
コード例 #2
0
ファイル: ProtocolController.cs プロジェクト: radu-v/mppt-cli
 static bool FindPredicate_Parameter(McmParameter p) => p.Command == key;