Skip to content

Exception when passing BusState to RemoteBus #31

@cody82

Description

@cody82

On initialization of RemoteBus I get an exception on this line because it can not convert BusState to json:

self._ws.send(json.dumps({"type": event_type, "payload": payload}))

BusState is defined here:
https://github.com/hardbyte/python-can/blob/develop/can/bus.py#L22

How could that be fixed? Other Bus implementations allow this parameter. (Like https://github.com/hardbyte/python-can/blob/develop/can/interfaces/pcan/pcan.py#L117)

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