⚠️ Not yet public
The Device API currently in development and is not yet accessible on production devices.
These pages can be seen as a view of what is to come later this year.
10010: Menu Page
Draw or change a menu. Display or alter a menu page on the device screen.
Payload
| Field | Name | Description | Type | Unit |
|---|---|---|---|---|
| 3 | Page ID | The page to draw or update. Page ids 0-10 are reserved for system use. If no page id is provided, page id 11 will be assumed. You can provide the same page id as last time to update the menu, or a new page id to create a new menu. | uint8 | |
| 30 | Item count | Number of items in the menu (max 20). Required. | uint8 | |
| 31 | Selected item | Optionally select a specific item, else the first will be unsubscribed. Zero indexed. | uint8 | |
| 100 | Item 1 | ascii | ||
| 101 | Item 2 | ascii | ||
| 102 | Item 3 | ascii | ||
| 103 | Item 4 | ascii | ||
| 104 | Item 5 | ascii | ||
| 105 | Item 6 | ascii | ||
| 106 | Item 7 | ascii | ||
| 107 | Item 8 | ascii | ||
| 108 | Item 9 | ascii | ||
| 109 | Item 10 | ascii | ||
| 110 | Item 11 | ascii | ||
| 111 | Item 12 | ascii | ||
| 112 | Item 13 | ascii | ||
| 113 | Item 14 | ascii | ||
| 114 | Item 15 | ascii | ||
| 115 | Item 16 | ascii | ||
| 116 | Item 17 | ascii | ||
| 117 | Item 18 | ascii | ||
| 118 | Item 19 | ascii | ||
| 119 | Item 20 | ascii |
Examples
Display a menu page with 3 options
📡 Real example from Generate tool on 2025-10-16This example was generated using the generate tool, and was tested against an RH2 device, sent from Toit.
Add a fourth option
📡 Real example from Generate tool on 2025-10-16This example was generated using the generate tool, and was tested against an RH2 device, sent from Toit.
Select the fourth option
📡 Real example from Generate tool on 2025-10-16This example was generated using the generate tool, and was tested against an RH2 device, sent from Toit.
Code
For convenience, the following constants can be used to reference this message type.