-
Notifications
You must be signed in to change notification settings - Fork 1
Internal Events
doomke edited this page May 15, 2023
·
14 revisions
Internal Events are used to propagate state changes of a module to other modules on the same hardware. Every event includes the following 2 pieces of information:
-
eventId-- integer, identifies category of the condition that occured -
sourceId-- String, ID of the module issueing the event Internal events do not get forwarded to the socket server and are therefore only available to modules that share the same ESP32. However, Custom event Hooks can be created to execute commands when events occur.
| ID | event type | source module |
|---|---|---|
| 0 | socket disconnected |
socket |
| 1 | socket connected |
socket |
| 2 | socket authed |
socket |
| 3 | wifi disconnected |
WiFi |
| 4 | wifi connected |
WiFi |
| 5 | busy |
all[1] |
| 6 | ready |
all[1] |
| 7 | time synced |
socket |
| 8 | debug on |
core[2] |
| 9 | debug off |
core[2] |
| 10 | input trigger low |
input |
| 11 | input trigger high |
input |
1.↑ modules can signal busy on timed actions or while moving to indicate they are not ready to receive the next command. Followed by ready once the modul is available again.
2.↑ used by the module manager to sync the debug state accross all modules