MMX6x2-HT
User’s Manual
Section 8. LW3 Programmers’ reference Page 85 / 119
Unsubscribe from a node
Command format: CLOSE[nodePath]
Response format: c-[nodePath]
Example:
> CLOSE/MEDIA/VIDEO
< c-/MEDIA/VIDEO
Unsubscribe from multiple nodes
Command format: CLOSE[nodePath]/*
Response format: c-[nodePath]/*
Example:
> CLOSE/MEDIA/VIDEO/*
< c-/MEDIA/VIDEO/*
8.3.7. Notifications about the changes of the properties
When the value of a property is changed and the user is subscribed to the node, which the
property belongs to, an asynchronous notification is generated. This is notification is called
as the ‘change message’. The format of such a message is very similar to the response for
the ‘GET’ command.
Format: CHG[nodePath].[propertyName]=[newPropertyValue]
Example:
< CHG /EDID.EdidStatus=F48:E1;F49:E2;F48:E3;F48:E4;F48:E5
A short example of how to use the subscription
In the following, an example is presented, how the subscriptions are working and how to
use them. In the example, there are two independent users controlling the device through
two independent connections (‘Connection #1’ and ‘Connection #2’). The events in the
rows occur after each other.
< o-●/MEDIA/VIDEO/XP
> GET●/MEDIA/VIDEO/XP.DestinationConnectionList
< pr●/MEDIA/VIDEO/XP.DestinationConnectionList=I2;I3;I2;I3
> GET●/MEDIA/VIDEO/XP.DestinationConnectionList
< pr●/MEDIA/VIDEO/XP.DestinationConnectionList=I2;I3;I2;I3
> CALL●/MEDIA/VIDEO/XP:switch(I1:O1)
< mO●/MEDIA/VIDEO/XP:switch
< CHG●/MEDIA/VIDEO/XP.DestinationConnectionList=I1;I3;I1;I3
Explanation: The first user (Connection #1) set a subscription to a node. Later the other
user (Connection #2) made a change, and thanks for the subscription, the first user got a
notification about the change.