Skip to content

Conversation

@acolomb
Copy link
Member

@acolomb acolomb commented Apr 24, 2024

The ultimate goal here is being able to switch from a "live" mode to an "offline" mode by accessing either the SDO client or the object dictionary while accessing the same methods.

The convenient get_variable() method is mirrored from the OD, raising no exceptions and encapsulating the two-staged access for sub-objects in records or arrays.

The writable and readable properties on an SdoVariable are simply passed through to the underlying OD properties. This is solely a convenience to match the ODVariable API without having to mention the internal sdo_var.od attribute.

The ultimate goal here is being able to switch from a "live" mode to
an "offline" mode by accessing either the SDO client or the object
dictionary while accessing the same methods.

The convenient get_variable() method is mirrored from the OD, raising
no exceptions and encapsulating the two-staged access for sub-objects
in records or arrays.

The writable and readable properties on an SdoVariable are simply
passed through to the underlying OD properties.  This is solely a
convenience to match the ODVariable API without having to mention the
internal sdo_var.od attribute.
@christiansandberg christiansandberg merged commit dc8a4ca into canopen-python:master Apr 25, 2024
@acolomb acolomb deleted the sdo-api-compatibility branch April 26, 2024 07:53
jonastittmannpinion pushed a commit to PinionGmbH/canopen that referenced this pull request Apr 30, 2024
@acolomb acolomb added this to the v2.3.0 milestone Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants