The idea for the input node is analagous to the build-in node-red mqtt node set to "Dynamic Subscription" mode, but to access the dbus directly.
Dynamic Input Node:
Has an input and an output.
input accepts 2 message types
- subscribe:
msg.topic: subscribe
msg.payload: {serviceName: <dbus service name>, path: <dbus path name>}
- unsubscribe:
msg.topic: unsubscribe
msg.payload: {serviceName: <dbus service name>, path: <dbus path name>}
output emits values whenever a subscribed value on dbus updates, or when a new value is subscribed to like:
msg.topic: dbus-value
msg.payload: {serviceName: <dbus service name>, path: <dbus path name>, datatype: <datatype of dbus value>, value: <value on dbus>}
Dynamic Output Node
One input, able to write a value to any dbus path:
msg.topic: write
msg.payload: {serviceName: <dbus service name>, path: <dbus path name>, datatype: <datatype of dbus value>, value: <value to write>}
The idea for the input node is analagous to the build-in node-red mqtt node set to "Dynamic Subscription" mode, but to access the dbus directly.
Dynamic Input Node:
Has an input and an output.
input accepts 2 message types
msg.topic:subscribemsg.payload:{serviceName: <dbus service name>, path: <dbus path name>}msg.topic:unsubscribemsg.payload:{serviceName: <dbus service name>, path: <dbus path name>}output emits values whenever a subscribed value on dbus updates, or when a new value is subscribed to like:
msg.topic:dbus-valuemsg.payload:{serviceName: <dbus service name>, path: <dbus path name>, datatype: <datatype of dbus value>, value: <value on dbus>}Dynamic Output Node
One input, able to write a value to any dbus path:
msg.topic:writemsg.payload:{serviceName: <dbus service name>, path: <dbus path name>, datatype: <datatype of dbus value>, value: <value to write>}