BDB commissioning API

BDB(Base Device Behavior) commissioning related APIs for ESP Zigbee SDK.

API Reference

Header File

Functions

Register the Zigbee touchlink action check handler.

Parameters:

callback[in] A callback that allow the user to determine whether the touchlink device can start a network or join as a router/end device, refer to esp_zb_touchlink_action_allowed_callback_t.

Clear the factory new state.

Touchlink clear factory new

Set the timeout for Touchlink target.

Parameters:

timeout[in] The waiting time for the device to exit the Touchlink target mode

Set the key bitmask for Touchlink commissioning.

Configures the key bitmask used for Touchlink commissioning. The network key will be encrypted using one of the key types specified in the bitmask. Higher priority is given to keys with higher bits. By default, the certification and master keys are included in the bitmask.

Parameters:

bitmask[in] The bitmask to be applied for Touchlink commissioning

Set the master key for Touchlink.

Parameters:

key[in] The master key that will be utilized for the Touchlink network

Set the RSSI threshold for the Touchlink target.

Note

The default value for the RSSI threshold is set to -64

Parameters:

rssi_threshold[in] The RSSI threshold determines whether the Touchlink target responds to the initiator

Get the RSSI threshold of Touchlink target.

Returns:

The value of RSSI threshold

Schedule to cancel touchlink target commissioning procedure.

Returns:

  • RET_OK: On success

  • RET_ERROR: Not in touchlink target procedure

void esp_zb_zll_identify_req_handler_register(esp_zb_zll_identify_req_callback_t cb)

Register ZLL identify request handler.

Parameters:

cb[in] A callback for zll identify notificaion, refer to esp_zb_zll_identify_req_callback_t

Structures

BDB touchlink network parameter information.

Public Members

address of device that started the network

endpoint of device that started the network

profile_id of device that started the network

Type Definitions

typedef enum esp_zb_bdb_commissioning_mode_mask_s esp_zb_bdb_commissioning_mode_mask_t

BDB commissioning mode mask bits.

Enumeration of touchlink actions, that should be approved by end user application.

Enumeration of touchlink key bitmask.

Touchlink action.

Touchlink action callback

Param action:

[in] action of the touchlink, refer to esp_zb_touchlink_action_t

Return:

  • True: allow

  • False: reject

typedef void (*esp_zb_zll_identify_req_callback_t)(bool identify_on)

Zll identify callback.

Param identify_on:

[in] An indication that needs start or stop identify

BDB touchlink network parameter information.

Enumerations

enum esp_zb_bdb_commissioning_mode_mask_s

BDB commissioning mode mask bits.

Values:

if bit is set, attempt Touchlink commissioning

enumerator ESP_ZB_BDB_NETWORK_STEERING

if bit is set, attempt network steering

enumerator ESP_ZB_BDB_NETWORK_FORMATION

if bit is set, attempt to form a network, according to device type

enumerator ESP_ZB_BDB_FINDING_N_BINDING

if bit is set, attempt finding and binding

if bit is set, attempt become touchlink target

Enumeration of touchlink actions, that should be approved by end user application.

Values:

Enumeration of touchlink key bitmask.

Values:

Master key is a secret shared by all certified touchlink devices

Certification key is is used to allow testing of the security mechanisms