Skip to content

Adds convenience method to query if a particular PID is supported #212

Merged
PowerBroker2 merged 1 commit intoPowerBroker2:masterfrom
jimwhitelaw:master
Dec 31, 2023
Merged

Adds convenience method to query if a particular PID is supported #212
PowerBroker2 merged 1 commit intoPowerBroker2:masterfrom
jimwhitelaw:master

Conversation

@jimwhitelaw
Copy link
Collaborator

This is a convenience method that selects the correct supportedPIDS_xx_xx() query and parses the bit-encoded result, returning a simple Boolean value indicating PID support from the ECU.

This change includes an example program showing how to use the new method. Just call the new method with the PID you are interested in:

    uint8_t pid = ENGINE_RPM;
    bool pidOK = myELM327.isPidSupported(pid);

@PowerBroker2 PowerBroker2 merged commit feaa1c0 into PowerBroker2:master Dec 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants