OpenCyphal / pycyphal

Python implementation of the Cyphal protocol stack.
https://pycyphal.readthedocs.io/
MIT License
120 stars 105 forks source link

Make NodeTracker's GetInfo request priority configurable #271

Closed Finwood closed 1 year ago

Finwood commented 1 year ago

Previously, the pycyphal.application.node_tracker.NodeTracker always sent out GetInfo requests with the fixed OPTIONAL priority. While this seems like a sensible default, there are situations where a higher priority may be desirable.

This PR adds the NodeTracker.get_info_priority property, by which the user may change this priority. The default behavior remains unchanged.