Skip to content

[Feature]: Add subscribe to Node class #127

@Chrylo

Description

@Chrylo

Description

Only a DataPoint (subclass of a node) has a subscribe method. This forces the developer to force cast from Node to DataPoint when using the following API:

node: DataPoint = self.Vehicle.getNode(signal_str) # type: ignore

Originally posted by @Chrylo in #126 (comment)

Suggested Solution

  • Implement the subscribe method also for the Node class
  • If a node (which is not a DataPoint / Signal) is being subscribed too then subscribe to all children

Alternatives

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions