Skip to main content

Module network

Module network 

Source
Expand description

Operational network credentials for devices being commissioned.

A Thread network is given to a device as its active operational dataset: MeshCoP TLVs (one byte of type, one byte of length, the value), as a border router hands them out. The controller sends the dataset as it is; it only reads the extended PAN id, which names the network in ConnectNetwork and is the one part of the dataset safe to log.

Constants§

MAX_DATASET_LEN
The largest dataset Matter’s AddOrUpdateThreadNetwork takes.

Functions§

parse_thread_dataset_hex
Parse a dataset given as hex (whitespace ignored), as ot-ctl dataset active -x and a border router’s REST API give it.
thread_extended_pan_id
The extended PAN id of a Thread active operational dataset, after checking the dataset is well-formed and carries a network key.