Decoder contract for a standardized OBD-II PID. More...
Public Member Functions | |
| int | mode (self) |
| Return the SAE J1979 service mode. | |
| int | pid (self) |
| Return the parameter identifier. | |
| str | unit (self) |
| Return the canonical unit of the decoded value. | |
| T_co|None | decode (self, bytes data) |
| Decode response payload bytes. | |
Decoder contract for a standardized OBD-II PID.
Decoders return values in the canonical units defined by SAE J1979. Display-unit conversion belongs in the application or presentation layer.
| T_co | None obd2.obd_pid_decoder.ObdPidDecoder.decode | ( | self, | |
| bytes | data ) |
Decode response payload bytes.
| data | PID payload excluding mode and PID bytes. |