Title: PDO: Allow subscription without calling read() or save() by acolomb · Pull Request #253 · canopen-python/canopen · GitHub
Open Graph Title: PDO: Allow subscription without calling read() or save() by acolomb · Pull Request #253 · canopen-python/canopen
X Title: PDO: Allow subscription without calling read() or save() by acolomb · Pull Request #253 · canopen-python/canopen
Description: Normally one needs to call read() or save() on a single pdo (or the node's whole PDO collection) in order to receive any such objects from the network. That however requires quite a few SDO exchanges to make sure the node's PDO configuration matches the parameters configured in the object. For applications where the PDO configuration is stored persistently in the node (e.g. device EEPROM), doing this SDO exchange can be skipped entirely if the application programmer takes care to mirror the same configuration in the python-canopen objects. Another use case is reconnecting to a node for which the same python-canopen script previously ran and the PDO configuration is still known to be valid. Factor out a new method subscribe() from read() and save() to offer doing only that last part via the public API. Adapt the log message and make sure it is logged in read() as well.
Open Graph Description: Normally one needs to call read() or save() on a single pdo (or the node's whole PDO collection) in order to receive any such objects from the network. That however requires quite a few SDO ex...
X Description: Normally one needs to call read() or save() on a single pdo (or the node's whole PDO collection) in order to receive any such objects from the network. That however requires quite a few SD...
Opengraph URL: https://github.com/canopen-python/canopen/pull/253
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:8a8e6081-6351-270c-0ae7-cb10e4c62125 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9BD4:179BE3:9A97E8E:D1C5CFD:6A5ECC81 |
| html-safe-nonce | 08b7aa199f3c5dd71050379cd42b98fc0d7876545a73a8d6c7860d31cfef3e6e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkQ0OjE3OUJFMzo5QTk3RThFOkQxQzVDRkQ6NkE1RUNDODEiLCJ2aXNpdG9yX2lkIjoiMTk5NDE4ODc4OTQ1MjI5NTI5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b1c2264d819f691ea07fece6eeec43f9fccfaeda0276b25521004e80de163ab5 |
| hovercard-subject-tag | pull_request:705462125 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/canopen-python/canopen/pull/253/files |
| twitter:image | https://avatars.githubusercontent.com/u/6996887?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/6996887?s=400&v=4 |
| og:image:alt | Normally one needs to call read() or save() on a single pdo (or the node's whole PDO collection) in order to receive any such objects from the network. That however requires quite a few SDO ex... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9bd00899c80f8b6ea4e7a96c99290af4722b0befdf9e021b19232cbd6f993660 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/canopen-python/canopen git https://github.com/canopen-python/canopen.git |
| octolytics-dimension-user_id | 200581454 |
| octolytics-dimension-user_login | canopen-python |
| octolytics-dimension-repository_id | 68737600 |
| octolytics-dimension-repository_nwo | canopen-python/canopen |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 68737600 |
| octolytics-dimension-repository_network_root_nwo | canopen-python/canopen |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9996307881fdf9017d864a20b3dfe5aae4dddd3e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width