Skip to content

Callback for 0x78 Pending response #60

@mamert

Description

@mamert

"pending" responses are silently ignored.

I have a branch which adds a callback triggered whenever they're received:
https://github.com/mamert/python-uds/tree/callback_for_0x78_pending

e.g. :

def samplePendingCallback(msg):
    print(f"0x78 Pending received while waiting for response to {msg}")
    
uds_bus = Uds(reqId=req_id, resId=res_id, defaultPendingCallback=samplePendingCallback)  # for every call
# OR
response = uds_bus.send([0x22, 0xF1, 0x86], pendingCallback=samplePendingCallback)  # just this one

I wanted to ask if this is worth creating a PR for (since It's a niche thing),
and if so, where to put an example

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions