parameters. The notification callback identifies the endpoint on the IoT Service
Client side that implements the notifyServiceDiscovery 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 notifyServiceDiscovery
operation of the IoT Service client, providing the service descriptions and the
subscription ID as parameters. A notification will be sent whenever a previously
provided service description changes or is deleted. A notification will also be
sent if a new service description fitting the given service specification becomes
available.
When the IoT Service Client is no longer interested in receiving notifications
pertaining to the subscription, it will call the unsubscribeServiceDiscovery
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.
IoT Service
Resolution
(from WP4
Interactions)
IoT-Service
Client
(from WP4
Interactions)
subscribeServiceDiscovery(ServiceSpecification,
notificationCallback) :SubscriptionID
notifyServiceDiscovery(SubscriptionID, ServiceDescription[ ])
notifyServiceDiscovery(SubscriptionID, ServiceDescription[ ])
unsubscribeServiceDiscovery(SubscriptionID)
Figure 127 : Subscribe Discovery of Service Descriptions based on Service
Specification