python-can-remote icon indicating copy to clipboard operation
python-can-remote copied to clipboard

Exception when passing BusState to RemoteBus

Open cody82 opened this issue 2 years ago • 0 comments

On initialization of RemoteBus I get an exception on this line because it can not convert BusState to json: https://github.com/christiansandberg/python-can-remote/blob/5e76930cb336da21ebcd1f675a8bece3f6bb5308/can_remote/protocol.py#L66

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)

cody82 avatar Feb 03 '23 13:02 cody82