Internet of Things Architecture

(Elliott) #1
IoT-Service
Client

(from WP4
Interactions)

IoT Service
Resolution

(from WP4
Interactions)

lookupService(ServiceID) :ServiceDescription

Figure 124 : Look up Service Description based on Service Identifier.

Interaction Diagram: Subscribe to Look-up


For subscribing to asynchronously receive notifications about the current
service description of a service identified by its service identifier, an IoT Service
Client synchronously calls the IoT Service Resolution, using the
subscribeServiceLookup operation with the Service ID of the service and the
notification callback, to which notifications are to be sent, as parameters. The
notification callback identifies the endpoint on the IoT Service Client side that
implements the notifyServiceLookup operation. The IoT Service Resolution
returns the subscription identifier that can be used to map an incoming
notification to the subscription it belongs to.


Subsequently, the IoT Service Resolution will call the notifyServiceLookup
operation of the IoT Service client, providing the service description and the
subscription ID as parameters.


When the IoT Service Client is no longer interested in receiving notifications
pertaining to the subscription, it will call the unsubscribeServiceLookup
operation of the IoT Service Resolution using the subscription identifier as
parameter. As a result, the IoT Service Resolution will stop sending notifications
pertaining to the identified subscription.

Free download pdf