espressif / esp-protocols

Collection of ESP-IDF components related to networking protocols
181 stars 126 forks source link

Websocket heap_caps_malloc and heap_caps_calloc to permit other memory type caps to be used in the websocket protocol (IDFGH-12945) #585

Closed filzek closed 4 months ago

filzek commented 4 months ago

Create a way to enable the usage of external or any other kind of memory allowed in heap_caps_malloc and heap_caps_calloc to be used in the websocket.

The memory_type directive was included in the esp_websocket_client_config_t structure and all functions was update to use the memory type defined, if not defined ot wrong type/bitwise it will use the MALLOC_CAP_INTERNAL, otherwise will use it.

Also the http_auth_basic function was also update to use the correct memory region set.

CLAassistant commented 4 months ago

CLA assistant check
All committers have signed the CLA.