.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
| Type | Enum |
|---|---|
| Value | on/off |
| Range | on/off |
| Order In Interpretation | 4 |
| Default Value | off |
-d
Set the double press switch action
| Type | Enum |
|---|---|
| Value | off/rd/wr/inv/bar/usr/ad |
| Range | off/rd/wr/inv/bar/usr/ad |
| Order In Interpretation | 5 |
| Default Value | ad |
-h
Turn haptic feedback on or off
| Type | Enum |
|---|---|
| Value | on/off |
| Range | on/off |
| Order In Interpretation | 7 |
| Default Value | off |
-p
List the current parameter values
| Type | Switch |
|---|---|
| Value | |
| Range | |
| Order In Interpretation | 8 |
-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
| Type | HEX |
|---|---|
| Value | xxx |
| Range | 3 Hex digits |
| Order In Interpretation | 2 |
| Default Value | 100 |
-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
| Type | HEX |
|---|---|
| Value | xxx |
| Range | 3 Hex digits |
| Order In Interpretation | 3 |
| Default Value | 100 |
-s
Set the single press switch action
| Type | Enum |
|---|---|
| Value | off/rd/wr/inv/bar/usr/ad |
| Range | off/rd/wr/inv/bar/usr/ad |
| Order In Interpretation | 6 |
| Default Value | ad |
-x
Reset the parameters to defaults
| Type | Switch |
|---|---|
| Value | |
| Range | |
| Order In Interpretation | 1 |
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
Examples
| Command | Response | Action |
| .sa -x | CS: .sa -x
OK: | .sa defaults loaded |
| .sa -p | CS: .sa -p
PR: -a off -d da -h off -p -rd 100 -rs 100 -s ad -x OK: | None |