espressif / esp-zigbee-sdk

Espressif Zigbee SDK
Apache License 2.0
178 stars 31 forks source link

undefined reference to `zb_get_tx_power' (TZ-799) #321

Closed mightChamp closed 7 months ago

mightChamp commented 7 months ago

Answers checklist.

IDF version.

v5.2

esp-zigbee-lib version.

0.9.5

esp-zboss-lib version.

0.7.2

Espressif SoC revision.

ESP32-C6

What is the expected behavior?

The Function

 esp_zb_get_tx_power(&power);

Should Return Transmit Power of Zigbee.

What is the actual behavior?

I am getting compile error

managed_components/espressif__esp-zigbee-lib/lib/esp32/libesp_zb_api_zczr.a(esp_zigbee_core.c.obj): in function `esp_zb_get_tx_power':
(.text.esp_zb_get_tx_power+0x6): undefined reference to `zb_get_tx_power'

Steps to reproduce.

Step 1: Use Zigbee Gateway Example Step 2: Add Below Code in esp_zb_app_signal_handler()-> Case: ESP_ZB_BDB_SIGNAL_STEERING

case ESP_ZB_BDB_SIGNAL_STEERING:
        if (err_status == ESP_OK) {
            ESP_LOGI(TAG, "Network steering started");
            int8_t power;
            esp_zb_get_tx_power(&power);
            ESP_LOGI(TAG,"Zigbee Power:%d",power);
        }
        break;

Step 3: Compiler will generate error:

managed_components/espressif__esp-zigbee-lib/lib/esp32/libesp_zb_api_zczr.a(esp_zigbee_core.c.obj): in function `esp_zb_get_tx_power':
(.text.esp_zb_get_tx_power+0x6): undefined reference to `zb_get_tx_power'

More Information.

No response

xieqinan commented 7 months ago

@mightChamp ,

Please update the esp-zigbee-lib and esp-zboss-lib to the latest 1.2.3 version which has contain esp_zb_get_tx_power() API.

mightChamp commented 7 months ago

Sorry for this, and thanks for info.