4.1.3. Commissioning
In the following sections, unless otherwise specified, the general rules are:
changes the prefix from
esp_zb_toezb_changes the error code type from
esp_err_ttoezb_err_tif used / returned.
4.1.3.1. BDB Commissioning
The header file of the BDB Commissioning is changed from bdb/esp_zigbee_bdb_commissioning.h to
ezbee/bdb.h .
The following macros, types, and functions have been renamed:
Rename
ESP_ZB_BDB_MODE_TOUCHLINK_COMMISSIONINGtoEZB_BDB_MODE_TOUCHLINK_INITIATORRename
esp_zb_bdb_commissioning_mode_mask_ttoezb_bdb_comm_mode_mask_tRename
esp_zb_bdb_commissioning_mode_ttoezb_bdb_comm_mode_tRename
esp_zb_bdb_commissioning_status_ttoezb_bdb_comm_status_tRename
esp_zb_set_bdb_commissioning_modetoezb_bdb_set_commissioning_modeRename
esp_zb_get_bdb_commissioning_modetoezb_bdb_get_commissioning_modeRename
esp_zb_get_bdb_commissioning_statustoezb_bdb_get_commissioning_status
The following macros, types, and functions have been removed:
ESP_ZB_BDB_MIN_COMMISSIONING_TIMEESP_ZB_BDB_INITIALIZATIONESP_ZB_BDB_TOUCHLINK_COMMISSIONINGESP_ZB_BDB_NETWORK_STEERINGESP_ZB_BDB_NETWORK_FORMATIONESP_ZB_BDB_FINDING_N_BINDINGESP_ZB_BDB_TOUCHLINK_TARGET
The following BDB related APP signals have been removed:
ESP_ZB_BDB_SIGNAL_TC_REJOIN_DONEESP_ZB_BDB_SIGNAL_STEERING_CANCELLED, please check the parameter of theEZB_BDB_SIGNAL_STEERINGsignalESP_ZB_BDB_SIGNAL_FORMATION_CANCELLED, please check the parameter of theEZB_BDB_SIGNAL_FORMATIONsignal
The behavioral changes:
In v2.x,
EZB_BDB_MODE_INITIALIZATIONwill not run by default unless the user explicitly sets it. That is, when the device reboots, the user should callezb_bdb_start_top_level_commissioning(EZB_BDB_MODE_INITIALIZATION)to start the initialization (rejoin to the previous network).
4.1.3.2. Touchlink Commissioning
The header file of the Touchlink Commissioning is changed from bdb/esp_zigbee_bdb_touchlink.h to
ezbee/touchlink.h .
The following macros, types, and functions have been renamed:
Rename
ESP_ZB_TOUCHLINK_MASTER_KEYtoEZB_TOUCHLINK_KEY_BITMASK_MASTERRename
ESP_ZB_TOUCHLINK_CERTIFICATION_KEYtoEZB_TOUCHLINK_KEY_BITMASK_CERTIFICATIONRename
esp_zb_touchlink_action_allowed_callback_ttoezb_touchlink_action_permission_callback_tRename
esp_zb_zll_identify_req_callback_ttoezb_touchlink_identify_callback_tRename
esp_zb_zdo_touchlink_target_set_timeouttoezb_touchlink_set_target_timeoutRename
esp_zb_zdo_touchlink_set_key_bitmasktoezb_touchlink_set_key_bitmaskRename
esp_zb_zdo_touchlink_set_master_keytoezb_touchlink_set_master_keyRename
esp_zb_zdo_touchlink_set_rssi_thresholdtoezb_touchlink_set_rssi_thresholdRename
esp_zb_zdo_touchlink_get_rssi_thresholdtoezb_touchlink_get_rssi_thresholdRename
esp_zb_zdo_touchlink_set_nwk_channeltoezb_touchlink_set_channelRename
esp_zb_zdo_touchlink_get_nwk_channeltoezb_touchlink_get_channel
The following macros, types, and functions have been removed:
esp_zb_touchlink_clear_factory_new
The following BDB related APP signals have been changed:
Remove
ESP_ZB_BDB_SIGNAL_TOUCHLINK_NWK_STARTEDRemove
ESP_ZB_BDB_SIGNAL_TOUCHLINK_NWK_JOINED_ROUTERRemove
ESP_ZB_BDB_SIGNAL_TOUCHLINK_TARGETRemove
ESP_ZB_BDB_SIGNAL_TOUCHLINK_NWKRename
ESP_ZB_BDB_SIGNAL_TOUCHLINKtoEZB_BDB_SIGNAL_TOUCHLINK_INITIATOR_FINISHEDRename
ESP_ZB_BDB_SIGNAL_TOUCHLINK_TARGET_FINISHEDtoEZB_BDB_SIGNAL_TOUCHLINK_TARGET_FINISHED
The behavioral changes:
In v2.x, the touchlink commissioning routine will not change the network security type (i.e. centralized or distributed) by itself. The user needs to ensure the network security type is correct before starting the touchlink commissioning.
In v2.x, the channel used for touchlink commissioning is set by the user via
ezb_touchlink_set_channel(), which affects the channel usage for both the touchlink initiator and target. For more details, please refer to the documentation ofezb_touchlink_set_channel().