Sound Control Protocol for ew D1

Table Of Contents
SSC Developer‘s guide for evolution wireless D1 | 36/56
SSC Method List
Example 3 – multi-parameter with non-default parameter:
TX: {"osc":{"state":{"subscribe":[{"#":{"lifetime":2000},"rx1":
{"mute_switch_active":null},"mates":{"tx1":{"bat_lifetime":null,
"bat_gauge":null,"switch1":{"state":null}}}}]}}}
RX: {"osc":{"state":{"subscribe":[{"#":{"lifetime":2000},"rx1":
{"mute_switch_active":null},"mates":{"tx1":{"bat_gauge":null}},
"mates":{"tx1":{"bat_lifetime":null}},"mates":{"tx1":{"switch1":
{"state":null}}}}]}}}
RX: {"rx1":{"mute_switch_active":false},"mates":{"tx1":{"bat_gauge":83}},
"mates":{"tx1":{"bat_lifetime":38460}},"mates":{"tx1":{"switch1":
{"state":true}}}}
subscription terminates at end of subscription lifetime with:
RX: {"osc":{"error":[{"rx1":{"mute_switch_active":[310]},"mates":{"tx1":
{"bat_gauge":[310]}},"mates":{tx1":{bat_lifetime":[310]}},"mates":
{"switch1":{"state":[310]}}}}]}}
8.12 /osc/state/close
Parameter type: Boolean.
Permission: Write only.
Pre-condition: N.A.
Post-condition: N.A.
Description: When an SSC Client calls this SSC Method with a true argument, the SSC Server MUST
close the connection immediately after the reply has been sent.
Example:
TX: {"osc":{"state":{"close":true}}}
RX: {"osc":{"state":{"close":true}}}
<Server closes connection>
8.13 /osc/state/prettyprint
Parameter type: Boolean.
Permission: Read only.
Pre-condition: N.A.
Post-condition: N.A.
Description: An SSC Server MAY support this Method to allow the SSC Client to select a preferred
formatting style for all SSC reply messages to be sent on the connection to the SSC Client by the
SSC Server.
Two styles are defined:
prettyprint = false: compact representation, no whitespace
prettyprint = true: formatted by adding whitespace
Examples:
TX: {"osc":{"state":{"prettyprint":null}}}
RX: {"osc":{"state":{"prettyprint":false}}}
TX: {"device":{"name":null}}
RX: {"device":{"name":"example device"}}
TX: {"osc":{"state":{"prettyprint":true}}}
RX: {"osc":{"state":{"prettyprint": true}}}
TX: {"device":{"name":null}}
RX: {"device":{"name":"example device"}}