Skip to main content

Module qr

Module qr 

Source
Expand description

SmartStart and S2 QR codes (the Z-Wave Alliance’s Node Provisioning QR code format): all decimal digits, 90, a version, a SHA-1 checksum, the requested keys, the DSK and then TLV blocks.

Structs§

ProductId
The QR code’s Product Id block.
ProductType
The QR code’s Product Type block.
QrCode
What a QR code says about a node.

Constants§

MAX_LEN
Longest code accepted; real labels are far shorter.
MIN_LEN
The shortest valid code: lead-in, version, checksum, keys and the DSK.

Functions§

encode
Builds a QR code string (for tests, simulators and label printing).
parse
Parses a QR code string. Whitespace around it is ignored; the checksum must match.