mosh:element_library:switch
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mosh:element_library:switch [2025/06/27 02:05] – mosh | mosh:element_library:switch [2025/06/27 14:22] (current) – removed mosh | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Switch ====== | ||
| - | * ACTION_RESET - sent when the switch is first registered. | ||
| - | * ACTION_STATE_ON - sent when the switch is placed in the " | ||
| - | * ACTION_STATE_OFF - sent when the switch is planed on the " | ||
| - | * ACTION_STATE_FLICK - sent when the switch is moved from either on-off-on, or off-on-off within the flick_delay | ||
| - | |||
| - | ==== Configuration ==== | ||
| - | |||
| - | <code c> | ||
| - | switch_element.set_flick_delay(uint16_t); | ||
| - | </ | ||
| - | |||
| - | ==== Properties ==== | ||
| - | |||
| - | <code c> | ||
| - | switch_element.get_state(); | ||
| - | </ | ||
| - | |||
| - | ==== Element Message ==== | ||
| - | |||
| - | <code c> | ||
| - | enum class MOSH_Element_Switch_Action : uint8_t { | ||
| - | ACTION_RESET | ||
| - | ACTION_STATE_ON | ||
| - | ACTION_STATE_OFF | ||
| - | ACTION_STATE_FLICK | ||
| - | ... | ||
| - | MSG_CUSTOM | ||
| - | }; | ||
| - | </ | ||
/var/www/wiki.moshnetworks.com/data/attic/mosh/element_library/switch.1750989904.txt.gz · Last modified: by mosh
