Last active
November 24, 2020 04:49
-
-
Save ricehornet/d636ef266d35dc27086a945d1a7e1dc0 to your computer and use it in GitHub Desktop.
PAYG Credit Resource
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PAYG Credit Resource | |
Disconnected* | |
reset or init -> link state? | |
link or unlink event -> link state? | |
Leading | |
reset -> Disconnected | |
link or unlink event -> link state? | |
Following | |
reset -> Disconnected | |
link or unlink event -> link state? | |
Relaying | |
reset -> Disconnected | |
link or unlink event -> link state? | |
link state? | |
no links -> Disconnected | |
linked to accessories only -> Leading | |
linked to controller only -> Following | |
linked to accessories and controller -> Relaying |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function render(model){ | |
let current_state_name = model.active_states[0].name; | |
return $("h1", | |
{style: {color: "darkBlue"}}, | |
`The current state is: ${current_state_name}`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment