Node

class canlib.kvadblib.Node(db, handle, name=None, comment=None)[source]

Database Node

attributes()[source]

Return a generator over all message attributes.

property comment

The node’s comment

Type

str

delete_attribute(name)[source]

Delete attribute from node.

get_attribute_value(name)[source]

Return attribute value

If the attribute is not set on the message, we return the attribute definition default value.

property name

The node’s name

Type

str

set_attribute_value(name, value)[source]

Set value of attribute ‘name’ on node.

If no attribute called ‘name’ is set on node, attach a node attribute from the database attribute definition first.