espressif / esp-zigbee-sdk

Espressif Zigbee SDK
Apache License 2.0
172 stars 30 forks source link

Obtaining at compile/runtime the ESP Zigbee Library version? (TZ-1137) #429

Open monty68 opened 2 months ago

monty68 commented 2 months ago

Question

Can we obtain the version number/details of the ESP Zigbee library version at compile time and/or at runtime?

For ZBoss, there is the zb_get_version() function.

Additional context.

No response

xieqinan commented 1 month ago

@monty68 ,

Can we obtain the version number/details of the ESP Zigbee library version at compile time and/or at runtime?

The esp-zigbee-sdk v1.5.1 has already supported this feature, please refer to https://github.com/espressif/esp-zigbee-sdk/blob/main/components/esp-zigbee-lib/include/esp_zigbee_core.h#L961.

xieqinan commented 2 weeks ago

Hi @monty68 ,

Does this feature https://github.com/espressif/esp-zigbee-sdk/issues/429#issuecomment-2419191799 meet your requirement? If yes, please consider closing this issue.

monty68 commented 2 weeks ago

Could we not have a simple #define in the header as well?

xieqinan commented 1 day ago

Could we not have a simple #define in the header as well?

I cannot clearly understand your request; could you please provide more details about this requirement?