Open sphaero opened 9 years ago
I think that - if properly documented - the current situation is the best; there may not be a "current" value, the value may only be relevant when the node emits the value. Currently there is no standard response to a subscribe event (though it would be beneficial for a node to be able to deny a subscription). But node1 can use on_peer_subscribe to fire off a signal to node2 when it subscribes.
node1:
node2:
Now node2 will not have the value of node1's state in its state1 parameter. Of course node2 can get the value from the capability tree but what behaviour is wanted?