... | ... | @@ -2,7 +2,7 @@ |
|
|
|
|
|
This document proposes a protocol for sensor subscriptions. The use case is as follows:
|
|
|
|
|
|
A dataspace node (the subscriber) wants to automatically receive sensor nodes from a sensor provided by a different node (the publisher). To do so, the subscriber subscribes himself to the publisher's sensor. When the sensor provides a new sensor reading, the publisher will forward it to the subscriber. When the subscriber is no longer interested in the sensor, he unsubscribes himself. The publisher will no longer send new readings to him. Subscriptions are expected to persist between reboots and when the subscriber or the publisher is offline.
|
|
|
A dataspace node (the subscriber) wants to automatically receive sensor readings from a sensor provided by a different node (the publisher). To do so, the subscriber subscribes himself to the publisher's sensor. When the sensor provides a new sensor reading, the publisher will forward it to the subscriber. When the subscriber is no longer interested in the sensor, he unsubscribes himself. The publisher will no longer send new readings to him. Subscriptions are expected to persist between reboots and when the subscriber or the publisher is offline.
|
|
|
|
|
|
The protocol is specified below. All messages are sent via drasyl. When a message is received which is not expected by the protocol, it is ignored by the receiving node.
|
|
|
|
... | ... | |