nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_cloud_os_mem_hooks_init()

void nrf_cloud_os_mem_hooks_init ( struct nrf_cloud_os_mem_hooks hooks)

#include <include/net/nrf_cloud_os.h>

Initialize the used OS memory hooks. As a default, nRF Cloud library uses OS kernel heap memory (in other words, k_ prepending OS functions). This can be used to override those (for example, to be using OS system heap, that is standard C calloc/malloc/free).

Note
This API must be called before using nRF Cloud, even before nrf_cloud_init().
Parameters
[in]hooksUsed memory alloc/free functions.