Skip to content

Commit 005fe00

Browse files
committed
Merge branch 'release/esp-zigbee-sdk-v1.6.8' into 'main'
release/esp-zigbee-sdk-v1.6.8(79cb709a) See merge request espressif/esp-zigbee-sdk!210
2 parents b32325f + b388ea7 commit 005fe00

File tree

68 files changed

+271
-202
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+271
-202
lines changed

.gitlab/ci/common.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ stages:
55
- docs
66

77
variables:
8-
DOCKER_ENV_FOR_GENERATE: "v5.3:1"
9-
DOCKER_ENV_FOR_DOCS: "v5.3:1-1"
8+
DOCKER_ENV_FOR_GENERATE: "v5.5:3"
9+
DOCKER_ENV_FOR_DOCS: "v5.5:3-1"

.gitlab/ci/generate_build_test_jobs.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,23 @@ generate_child_pipeline:
1414
- |
1515
python3 tools/ci/dynamic_pipelines/generate_child_pipeline.py \
1616
--result child_pipeline_default.yml \
17-
--idf_version v5.3.2 \
18-
--chips esp32h2 esp32c6 esp32s3 \
17+
--idf_version v5.5.1 \
18+
--chips esp32h2 esp32c6 esp32s3 esp32c5\
1919
--job_templates build_pytest_template_sdk_example build_non_pytest_template_sdk_example build_pytest_gateway_template_sdk_example pytest_template_sdk_example
2020
- |
2121
python3 tools/ci/dynamic_pipelines/generate_child_pipeline.py \
2222
--result child_pipeline_lts.yml \
23-
--idf_version v5.1.4 v5.2.3 \
23+
--idf_version v5.1.6 v5.2.5 v5.3.4 v5.4.2 \
2424
--chips esp32h2 esp32c6 esp32s3 \
25-
--job_templates build_pytest_template_sdk_example build_non_pytest_template_sdk_example build_pytest_gateway_template_sdk_example pytest_template_sdk_example
25+
--job_templates build_pytest_template_sdk_example build_non_pytest_template_sdk_example build_pytest_gateway_template_sdk_example pytest_template_sdk_example \
26+
--manual_pytest
2627
- |
2728
python3 tools/ci/dynamic_pipelines/generate_child_pipeline.py \
2829
--result child_pipeline_idf_example.yml \
29-
--idf_version v5.3.2 master \
30-
--chips esp32h2 esp32c6 esp32s3 \
31-
--job_templates build_pytest_template_idf_example build_pytest_gateway_template_idf_example pytest_template_idf_example
30+
--idf_version v5.5.1 master \
31+
--chips esp32h2 esp32c6 esp32s3 esp32c5 \
32+
--job_templates build_pytest_template_idf_example build_pytest_gateway_template_idf_example pytest_template_idf_example \
33+
--manual_pytest
3234
3335
build_and_test_pipeline_default:
3436
stage: build
@@ -64,7 +66,6 @@ build_and_test_pipeline_idf_example:
6466
- generate_child_pipeline
6567
inherit:
6668
variables: true
67-
when: manual
6869
trigger:
6970
include:
7071
- artifact: child_pipeline_idf_example.yml

.gitlab/ci/templates.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ include:
3232
extends:
3333
- .build_pytest_template_base
3434
script:
35-
- build_example ${CI_PROJECT_DIR}/examples/esp_zigbee_all_device_types_app esp32h2 esp32c6
36-
- update_idf_cmake_list_for_master
35+
- build_example ${CI_PROJECT_DIR}/examples/esp_zigbee_all_device_types_app esp32h2 esp32c6 esp32c5
36+
- update_idf_cmake_list
3737
- update_gateway_wifi_config ${IDF_PATH}/examples/zigbee/esp_zigbee_gateway
3838
- cd ${IDF_PATH}
3939
# Skip using IDF build app configuration
@@ -81,7 +81,7 @@ include:
8181
- .build_pytest_gateway_template_base
8282
script:
8383
- build_example ${CI_PROJECT_DIR}/examples/esp_zigbee_all_device_types_app esp32h2
84-
- update_idf_cmake_list_for_master
84+
- update_idf_cmake_list
8585
# false means not enable rcp update
8686
- build_rcp_gateway ${IDF_PATH}/examples/zigbee/esp_zigbee_gateway false
8787

RELEASE_NOTES.md

Lines changed: 16 additions & 0 deletions

components/esp-zigbee-lib/CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.16)
22

33
if (CONFIG_ZB_ENABLED)
4-
set(src_dirs "")
4+
set(src_dirs "src/compat")
55
set(include_dirs include)
66
endif()
77

@@ -53,9 +53,10 @@ if(CONFIG_ZB_ENABLED)
5353
target_link_libraries(${COMPONENT_LIB} INTERFACE ${ESP_ZIGBEE_API_LIBS})
5454
target_compile_options(${COMPONENT_LIB} INTERFACE $<$<COMPILE_LANGUAGE:C>:-Wno-strict-prototypes>)
5555

56+
target_link_libraries(${COMPONENT_LIB} INTERFACE zboss_port_lib $<TARGET_FILE:${COMPONENT_LIB}>)
5657
if (CONFIG_ZB_RADIO_SPINEL_UART)
5758
idf_component_get_property(openthread_lib openthread COMPONENT_LIB)
58-
idf_component_get_property(zigbee_lib espressif__esp-zigbee-lib COMPONENT_LIB)
59-
target_link_libraries(${COMPONENT_LIB} INTERFACE zboss_port_lib $<TARGET_FILE:${zigbee_lib}> $<TARGET_FILE:${openthread_lib}> zboss_port_lib)
59+
target_link_libraries(${COMPONENT_LIB} INTERFACE $<TARGET_FILE:${openthread_lib}>)
6060
endif()
61+
6162
endif()

components/esp-zigbee-lib/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "1.6.7"
1+
version: "1.6.8"
22
description: esp-zigbee library component
33
url: https://github.com/espressif/esp-zigbee-sdk
44
dependencies:

components/esp-zigbee-lib/include/aps/esp_zigbee_aps.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,20 @@ esp_err_t esp_zb_aps_set_fragment_interframe_delay(uint8_t delay_ms);
271271
*/
272272
uint8_t esp_zb_aps_get_fragment_interframe_delay(void);
273273

274+
/**
275+
* @brief Set the authenticated state of the device in the APS layer.
276+
*
277+
* @param[in] authenticated The authenticated state to be set.
278+
*/
279+
void esp_zb_aps_set_authenticated(bool authenticated);
280+
281+
/**
282+
* @brief Check whether the device is authenticated.
283+
*
284+
* @return true if authenticated, otherwise false.
285+
*/
286+
bool esp_zb_aps_is_authenticated();
287+
274288
#ifdef __cplusplus
275289
}
276290
#endif

components/esp-zigbee-lib/include/esp_zigbee_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
#endif
1616

1717
#ifndef ESP_ZB_VER_PATCH
18-
#define ESP_ZB_VER_PATCH 7
18+
#define ESP_ZB_VER_PATCH 8
1919
#endif

components/esp-zigbee-lib/include/nwk/esp_zigbee_nwk.h

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,14 +244,14 @@ void esp_zb_get_long_address(esp_zb_ieee_addr_t addr);
244244
uint16_t esp_zb_get_short_address(void);
245245

246246
/**
247-
* @brief Set the Zigbee network extended PAN ID.
247+
* @brief Set the extended PAN ID used by the Zigbee device for joining or forming a network.
248248
*
249249
* @param ext_pan_id An 64-bit of extended PAN ID, which is presented in little-endian.
250250
*/
251251
void esp_zb_set_extended_pan_id(const esp_zb_ieee_addr_t ext_pan_id);
252252

253253
/**
254-
* @brief Get the Zigbee network extended PAN ID.
254+
* @brief Get the extended PAN ID of Zigbee device.
255255
*
256256
* @note This function will return back a pointer to 64-bit of extended PAN ID.
257257
*
@@ -379,6 +379,22 @@ uint8_t esp_zb_nwk_get_link_status_period(void);
379379
*/
380380
esp_err_t esp_zb_nwk_set_link_status_period(uint8_t period);
381381

382+
/**
383+
* @brief Set the nwkExtendedPANID attribute in the NIB.
384+
*
385+
* @param[in] ext_pan_id A 64-bit extended PAN ID in little-endian format to be set in the NIB.
386+
*/
387+
void esp_zb_nwk_set_extended_pan_id(esp_zb_ext_pan_id_t ext_pan_id);
388+
389+
/**
390+
* @brief Get the nwkExtendedPANID attribute from the NIB.
391+
*
392+
* @param[out] ext_pan_id A 64-bit extended PAN ID in little-endian format retrieved from the NIB,
393+
* which represents the extended PAN ID of the network to which the device is joined.
394+
* If the value is 0x0000000000000000, the device is not connected to any network.
395+
*/
396+
void esp_zb_nwk_get_extended_pan_id(esp_zb_ext_pan_id_t ext_pan_id);
397+
382398
#ifdef __cplusplus
383399
}
384400
#endif

components/esp-zigbee-lib/include/zdo/esp_zigbee_zdo_command.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ typedef void (*esp_zb_zdo_node_desc_callback_t)(esp_zb_zdp_status_t zdo_status,
127127
*
128128
* @note User's callback get response from the remote device that local node wants to get power descriptor response.
129129
*
130-
* @param[in] zdo_status The ZDO response status, refer to `esp_zb_zdp_status`
131-
* @param[in] addr A short address of the device response, 0xFFFF - invalid address
132130
* @param[in] power_desc A pointer to the power desc, refer to esp_zb_af_node_power_desc_t
133131
* @param[in] user_ctx User information context, set in `esp_zb_zdo_power_desc_req()`
134132
*
@@ -472,7 +470,7 @@ typedef void (*esp_zb_zdo_scan_complete_callback_t)(esp_zb_zdp_status_t zdo_stat
472470
*
473471
* @param[in] status The status of callback, refer to esp_zb_zdp_status_t
474472
* @param[in] count The size of energy detect list
475-
* @param[in] ed_list The list of energy detect information, refer to esp_zb_energy_detect_channel_info_t
473+
* @param[in] channel_info The energy detect information of channels, refer to esp_zb_energy_detect_channel_info_t
476474
*
477475
*/
478476
typedef void (*esp_zb_zdo_energy_detect_callback_t)(esp_zb_zdp_status_t status, uint16_t count,
@@ -501,7 +499,8 @@ typedef void (*esp_zb_zdo_mgmt_lqi_rsp_callback_t)(const esp_zb_zdo_mgmt_lqi_rsp
501499
*
502500
* @brief A ZDO Mgmt_NWK_Update_req callback for user to get status of request.
503501
*
504-
* @param[in] zdo_status The ZDO response status, refer to `esp_zb_zdp_status`
502+
* @param[in] notify The notification structure of ZDO mgmt nwk update, refer to esp_zb_zdo_mgmt_update_notify_t
503+
* @param[in] user_ctx User information context, set in `esp_zb_zdo_mgmt_nwk_update_req()`
505504
*
506505
*/
507506
typedef void (*esp_zb_zdo_mgmt_nwk_update_notify_callback_t)(const esp_zb_zdo_mgmt_update_notify_t *notify, void *user_ctx);

0 commit comments

Comments
 (0)