Skip to main content

Module access

Module access 

Source
Expand description

The access layer (Mesh Protocol 3.7): opcodes and the messages of the foundation models (Configuration, sent with the device key) and of the Generic OnOff and Level models. Opcode names come from the SIG’s assigned numbers (bluetooth_numbers::mesh_opcode).

Modules§

op
Configuration and Generic opcodes the provisioner uses.

Structs§

Composition
Composition Data page 0.
Element
One element of a node.

Enums§

GenericStatus
A Generic OnOff or Level Status: present (and target, when moving).
ModelId
A model: a SIG model (16 bits) or a vendor’s (company, model).

Functions§

appkey_add
Config AppKey Add.
generic_status
Parses a Generic OnOff or Level Status.
key_indexes
Two 12-bit key indexes packed in three octets, little-endian.
level_set
Generic Level Set (or Set Unacknowledged).
message
An access payload: opcode then parameters.
model_app_bind
Config Model App Bind.
model_pub_set
Config Model Publication Set: publish to address with app_index, TTL, period (raw byte), retransmit count and interval steps.
model_sub_add
Config Model Subscription Add.
name
The opcode’s name.
onoff_set
Generic OnOff Set (or Set Unacknowledged): on or off, with a transaction identifier.
split
Splits an access payload into opcode and parameters.

Type Aliases§

Opcode
An opcode: 1 octet (0x00-0x7e), 2 octets (0x8000-0xbfff), or 3 octets (0xc0xxxx, a vendor’s, with its company identifier).