Open minhyuk opened 1 year ago
Dear, Am I something do wrong?
Hello @minhyuk,
I do not see the context
keyword for can.Bus
in the python-can documentation. Is this interface specific? I would otherwise expect to see it on https://python-can.readthedocs.io/en/stable/bus.html#can.Bus
Where can I read more about this?
Hello @minhyuk,
I do not see the
context
keyword forcan.Bus
in the python-can documentation. Is this interface specific? I would otherwise expect to see it on https://python-can.readthedocs.io/en/stable/bus.html#can.BusWhere can I read more about this?
First of all, Thank you for your feedback.
Actually, if you have CAN configuration file(.ini/.conf), you have to pass context argument via kwargs. here is some code for Bus interface https://github.com/hardbyte/python-can/blob/7dba4490c6c61385dc8cbe917e85492b4777b8f6/can/interface.py#L69
and some below, you can see this code for loading configuration from file https://github.com/hardbyte/python-can/blob/7dba4490c6c61385dc8cbe917e85492b4777b8f6/can/interface.py#L121
this code might helpful, understanding what I want do. If I am wrong, please let me know.
When using the configuration of python-can, it was guided to pass interface settings through context, so I made the modification.
https://python-can.readthedocs.io/en/stable/configuration.html
I have verified that it works properly with python-can-remote. Please review and provide feedback.