Example #1
0
        public Dictionary <int, List <int> > GetSupportedPids()
        {
            var supportedPids = new Dictionary <int, List <int> >();

            var result = ObdPort.GetPidData(0x01, 0x00);

            foreach (var payload in result)
            {
                supportedPids[payload.Key] = DecodeSupportedPids(payload.Value, 0x00);
            }

            result = ObdPort.GetPidData(0x01, 0x20);
            foreach (var payload in result)
            {
                supportedPids[payload.Key].AddRange(DecodeSupportedPids(payload.Value, 0x20));
            }

            result = ObdPort.GetPidData(0x01, 0x40);
            foreach (var payload in result)
            {
                supportedPids[payload.Key].AddRange(DecodeSupportedPids(payload.Value, 0x40));
            }

            return(supportedPids);
        }
Example #2
0
 public ObdResponse GetPidData(ObdRequest req)
 {
     return(ObdPort.GetPidData(req));
 }