Skip to main content

MAX_NAME_LENGTH

Constant MAX_NAME_LENGTH 

Source
pub const MAX_NAME_LENGTH: u32 = 256;
Expand description

The HID protocol doesn’t specify any character strings. This const value limits the length of names passed along from low-level protocols such as USB and Bluetooth.

Chosen to be larger than the size limits for USB string descriptors (Universal Serial Bus Specification v2.0, 9.6.7 String) and Bluetooth Device Name (Bluetooth Specification v5.2, Vol 4, Part E, Section 6.23).