Skip to content

⚠️ 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 ​

FieldNameDescriptionTypeUnit
3Page IDThe 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
30Item countNumber of items in the menu (max 20). Required.uint8
31Selected itemOptionally select a specific item, else the first will be unsubscribed.
Zero indexed.
uint8
100Item 1ascii
101Item 2ascii
102Item 3ascii
103Item 4ascii
104Item 5ascii
105Item 6ascii
106Item 7ascii
107Item 8ascii
108Item 9ascii
109Item 10ascii
110Item 11ascii
111Item 12ascii
112Item 13ascii
113Item 14ascii
114Item 15ascii
115Item 16ascii
116Item 17ascii
117Item 18ascii
118Item 19ascii
119Item 20ascii

Examples ​

Display a menu page with 3 options
Protocol
03
3
Length
4500
45 bytes
Type
2639
10010 (Menu Page)
Header Count
0100
1
Header Types
01
1
Message ID
0413020000
525
Payload Count
0500
5
Payload Types
0330100101102
3, 30, 100, 101, 102
Page ID
0115
15
Item count
0103
3
Item 1
0570105114115116
First
Item 2
068310199111110100
Second
Item 3
0584104105114100
Third
Checksum
95108
27743
Add a fourth option
Protocol
03
3
Length
2200
22 bytes
Type
2639
10010 (Menu Page)
Header Count
0000
0
Payload Count
0300
3
Payload Types
0330103
3, 30, 103
Page ID
0115
15
Item count
0104
4
Item 4
0352116104
4th
Checksum
115229
58739
Select the fourth option
Protocol
03
3
Length
2000
20 bytes
Type
2639
10010 (Menu Page)
Header Count
0000
0
Payload Count
0300
3
Payload Types
033031
3, 30, 31
Page ID
0115
15
Item count
0104
4
Selected item
0103
3
Checksum
21086
22226

Code ​

For convenience, the following constants can be used to reference this message type.