Table of Contents

.sa Switch Action Command

Defines what happens when the switch is pressed.

Android iOS .NET
link coming soon link coming soon SwitchActionCommand

Parameters

Identifier Values Description
-a on/off Turn asynchronous switch status reporting on or off
-d off/rd/wr/inv/bar/usr/ad Set the double press switch action
-h on/off Turn haptic feedback on or off
-p List the current parameter values
-rd xxx Sets the delay before the switch double press action is repeated when the switch is held pressed. Where xxx is a value between 1 and 999 ms
-rs xxx Sets the delay before the switch single press action is repeated when the switch is held pressed. Where xxx is a value between 1 and 999 ms
-s off/rd/wr/inv/bar/usr/ad Set the single press switch action
-x Reset the parameters to defaults

Parameter detail

-a

Turn asynchronous switch status reporting on or off

TypeEnum
Valueon/off
Rangeon/off
Order In Interpretation4
Default Valueoff

-d

Set the double press switch action

TypeEnum
Valueoff/rd/wr/inv/bar/usr/ad
Rangeoff/rd/wr/inv/bar/usr/ad
Order In Interpretation5
Default Valuead

-h

Turn haptic feedback on or off

TypeEnum
Valueon/off
Rangeon/off
Order In Interpretation7
Default Valueoff

-p

List the current parameter values

TypeSwitch
Value
Range
Order In Interpretation8

-rd

Sets the delay before the switch double press action is repeated when the switch is held pressed. Where xxx is a value between 1 and 999 ms

TypeHEX
Valuexxx
Range3 Hex digits
Order In Interpretation2
Default Value100

-rs

Sets the delay before the switch single press action is repeated when the switch is held pressed. Where xxx is a value between 1 and 999 ms

TypeHEX
Valuexxx
Range3 Hex digits
Order In Interpretation3
Default Value100

-s

Set the single press switch action

TypeEnum
Valueoff/rd/wr/inv/bar/usr/ad
Rangeoff/rd/wr/inv/bar/usr/ad
Order In Interpretation6
Default Valuead

-x

Reset the parameters to defaults

TypeSwitch
Value
Range
Order In Interpretation1

Parameter Interpretation Order

-x, -rd, -rs, -a, -d, -s, -h, -p

Parameter Defaults

-a off, -d ad, -h off, -rd 100, -rs 100, -s ad

Response Headers

CS ER ME OK PR

Examples

CommandResponseAction
.sa -xCS: .sa -x

OK:

.sa defaults loaded
.sa -pCS: .sa -p

PR: -a off -d da -h off -p -rd 100 -rs 100 -s ad -x

OK:

None