Skip to main content

MAX_PASSCODE

Constant MAX_PASSCODE 

Source
pub const MAX_PASSCODE: u32 = 99_999_998;
Expand description

Largest valid Matter setup passcode (Core Spec §5.1.7.1: the passcode SHALL be in 1..=99_999_998). The QR/manual-code wire field is 27 bits wide, but values in 99_999_999..=0x07FF_FFFF are not valid passcodes — every spec-compliant commissioner (chip-tool, Apple/Google Home, …) rejects a setup code that carries one.