espressif / idf-extra-components

Additional components for ESP-IDF, maintained by Espressif
136 stars 85 forks source link

CoAP: Support for Q-Block options (RFC9177) is always disabled (IEC-108) #324

Closed sfzhi closed 2 months ago

sfzhi commented 2 months ago

Answers checklist.

Which component are you using? If you choose Other, provide details in More Information.

coap

ESP-IDF version.

5.2.1

Development Kit.

Seeed XIAO ESP32C3

Used Component version.

4.3.4~1

More Information.

The component page lists RFC9177 as supported, but in reality that is not the case. The corresponding upstream libcoap version does support it, but that support is always disabled in the ESP-IDF component. I can see the relevant macro (COAP_Q_BLOCK_SUPPORT) is defined in port/include/coap_config.h, but the corresponding configuration option is not present in the Kconfig file, so the functionality cannot be enabled (at least not without using some dirty tricks to inject the macro when building the component).