4.1.4. Zigbee Stack
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.4.1. ZDO (Zigbee Device Object)
In zdo/esp_zigbee_zdo_common.h:
The following types and enumerator values are moved to ezbee/zdo/zdo_type.h :
esp_zb_zdp_status_tand renamed toezb_zdp_status_tESP_ZB_ZDP_STATUS_*and renamed toEZB_ZDP_STATUS_*
Otherwise, the remainings are expected to related with Zigbee application signals and moved to ezbee/app_signals.h .
The following types, enumerator values are renamed except for the renaming rule:
Rename
ESP_ZB_NLME_STATUS_INDICATIONtoEZB_NWK_SIGNAL_NETWORK_STATUSRename
ESP_ZB_ZDO_TC_ACTION_AUTHORIZEtoEZB_ZDO_TC_ACTION_ACCEPTRename
esp_zb_zdo_update_dev_tc_action_ttoezb_zdo_tc_action_tRename
ESP_ZB_ZDO_STANDARD_DEV_SECURED_REJOINtoEZB_ZDO_UPDDEV_SECURE_REJOINRename
ESP_ZB_ZDO_STANDARD_DEV_UNSECURE_JOINtoEZB_ZDO_UPDDEV_UNSECURE_JOINRename
ESP_ZB_ZDO_STANDARD_DEV_DEVICE_LEFTtoEZB_ZDO_UPDDEV_DEVICE_LEFTRename
ESP_ZB_ZDO_STANDARD_DEV_TC_REJOINtoEZB_ZDO_UPDDEV_TC_REJOINRename
esp_zb_zdo_update_dev_status_ttoezb_zdo_upddev_status_tRename
esp_zb_zdo_signal_nwk_status_indication_params_ttoezb_nwk_signal_network_status_params_tRename
esp_zb_zdo_signal_to_string()toezb_app_signal_to_string()
esp_zb_app_signal_tis renamed toezb_app_signal_t, and changed to a opaque type. Please useezb_app_signal_get_type()andezb_app_signal_get_params()to access the signal type and parameters.The application signal handler now SHALL be registered with
ezb_app_signal_add_handler()and can be removed withezb_app_signal_remove_handler().
In zdo/esp_zigbee_zdo_command.h:
The following functions are moved to ezbee/app_signals.h :
esp_zb_zdo_signal_to_string()and renamed toezb_app_signal_to_string()
The Active Scan and Energy Detect scan are now provided by
ezb_nwk_scan(), seeezb_nwk_scan_req_tfor details. Therefore, the following functions are removed:esp_zb_zdo_active_scan_request(),esp_zb_zdo_scan_complete_callback_t,esp_zb_network_descriptor_tesp_zb_zdo_energy_detect_request(),esp_zb_zdo_energy_detect_callback_t,esp_zb_energy_detect_channel_info_t
The following macros are removed:
ESP_ZB_MATCH_DESC_REQ_ROLEESP_ZB_MATCH_DESC_REQ_TIMEOUTESP_ZB_IEEE_ADDR_REQ_TIMEOUTESP_ZB_NWK_ADDR_REQ_TIMEOUTESP_ZB_NODE_DESC_REQ_TIMEOUTESP_ZB_BIND_DEVICE_REQ_TIMEOUTESP_ZB_ACTIVE_EP_REQ_TIMEOUTESP_ZB_SIMPLE_DESC_REQ_TIMEOUTESP_ZB_PERMIT_JOIN_REQ_TIMEOUTESP_ZB_DEVICE_LEAVE_REQ_TIMEOUTESP_ZB_DEVICE_BIND_TABLE_REQ_TIMEOUTESP_ZB_DEVICE_MGMT_LQI_REQ_TIMEOUTESP_ZB_POWER_DESC_REQ_TIMEOUTESP_ZB_NWK_UPDATE_REQ_TIMEOUT
Otherwise, the remainings are expected to related with Zigbee Device Object commands and moved to ezbee/zdo/zdo_dev_srv_disc.h , ezbee/zdo/zdo_bind_mgmt.h , and ezbee/zdo/zdo_nwk_mgmt.h respectively. Please refer to the API reference for details.
4.1.4.2. APS (Application Support Sub-layer)
The header file of the APS layer is changed from aps/esp_zigbee_aps.h to
ezbee/aps.h .
The following macros, types, and functions have been renamed:
Rename
esp_zb_apsde_data_req_ttoezb_apsde_data_req_twith field changes:remove
use_alias, addEZB_APSDE_TX_OPT_USE_ALIAStotx_optionsinstead.remove
dst_addr_modeanddst_addr, usedst_addressinstead. Seeezb_address_t.
Rename
esp_zb_aps_data_confirmtoezb_apsde_data_confirmwith field changes:remove
dst_addr_modeanddst_short_addr, usedst_addressinstead. Seeezb_address_t.change the type of
asdu_lengthfromuint32_ttouint16_tremove
tx_time
Rename
esp_zb_aps_data_indicationtoezb_apsde_data_indicationwith field changes:remove
dst_addr_modeanddst_short_addr, usedst_addressinstead. Seeezb_address_t.remove
src_addr_modeandsrc_short_addr, usesrc_addressinstead. Seeezb_address_t.change the type of
asdu_lengthfromuint32_ttouint16_tremove
rx_time/security_status
Rename
esp_zb_aps_data_requesttoezb_apsde_data_requestRename
esp_zb_aps_data_indication_handler_registertoezb_apsde_data_indication_handler_registerRename
esp_zb_aps_data_confirm_handler_registertoezb_apsde_data_confirm_handler_register
The following macros, types, and functions have been removed:
ESP_ZB_APS_ADDR_MODE_64_PRESENT_ENDP_NOT_PRESENTESP_ZB_APSDE_TX_OPT_NO_LONG_ADDResp_zb_apsme_transport_key_req_tandesp_zb_apsme_transport_key_request()esp_zb_apsme_switch_key_req_tandesp_zb_apsme_switch_key_request()esp_zb_aps_set_authenticated()andesp_zb_aps_is_authenticated()
4.1.4.3. NWK (Network Layer)
The header file of the NWK layer is changed from nwk/esp_zigbee_nwk.h to
ezbee/nwk.h .
The following macros, types, and functions have been renamed:
Rename
ESP_ZB_NWK_COMMAND_STATUS_*toEZB_NWK_NETWORK_STATUS_*rename
ESP_ZB_NWK_COMMAND_STATUS_NO_ROUTE_AVAILABLEtoEZB_NWK_NETWORK_STATUS_LEGACY_NO_ROUTE_AVAILABLErename
ESP_ZB_NWK_COMMAND_STATUS_TREE_LINK_FAILUREtoEZB_NWK_NETWORK_STATUS_LEGACY_LINK_FAILURErename
ESP_ZB_NWK_COMMAND_STATUS_NONE_TREE_LINK_FAILUREtoEZB_NWK_NETWORK_STATUS_LINK_FAILURE
Rename
esp_zb_nwk_command_status_ttoezb_nwk_network_status_tRename
esp_zb_set_pan_id()toezb_nwk_set_panid()Rename
esp_zb_get_pan_id()toezb_nwk_get_panid()Rename
esp_zb_set_network_device_role()toezb_nwk_set_device_type()Rename
esp_zb_get_network_device_role()toezb_nwk_get_device_type()Rename
esp_zb_set_long_address()toezb_nwk_set_extended_address()Rename
esp_zb_get_long_address()toezb_nwk_get_extended_address()Rename
esp_zb_set_extended_pan_id()toezb_set_use_extended_panid()Rename
esp_zb_get_extended_pan_id()toezb_nwk_get_extended_panid()Rename
esp_zb_address_short_by_ieee()toezb_address_short_by_extended()Rename
esp_zb_ieee_address_by_short()toezb_address_extended_by_short()
The following macros, types, and functions have been removed:
Rename
ESP_ZB_NWK_RELATIONSHIP_PREVIOUS_CHILDRename
ESP_ZB_NWK_RELATIONSHIP_UNAUTHENTICATED_CHILD