Skip to main content

Module smp

Module smp 

Source
Expand description

The Security Manager (Core Vol 3, Part H): LE legacy pairing and LE Secure Connections, every association model (Just Works, Numeric Comparison, Passkey Entry, Out of Band), key distribution and bonding, and re-encryption with stored keys.

Each connection has one task that owns its SMP channel; a pairing runs inside it as straight-line code, each step waiting (30 s at most) for the peer’s next PDU.

Modules§

reason
Pairing Failed reasons.

Structs§

AutoAgent
An agent for a device with no person at it: accepts Just Works and Numeric Comparison, refuses anything needing a passkey or OOB data.
FixedAgent
An agent with fixed answers: a passkey to show and to type, whether to confirm numbers, and OOB data.

Enums§

IoCapability
Input and output capabilities.
Method
How the two devices authenticate each other.
OobData
Out-of-band data received from a peer.

Traits§

Agent
Answers the questions pairing asks of a person. The bridge implements it over MQTT; tests implement it with fixed answers.

Functions§

method
The association model, Core Vol 3, Part H, 2.3.5.1 (Table 2.8): rows are the responder’s capability, columns the initiator’s.

Type Aliases§

BoxFuture
A boxed future, so Agent stays object safe.