Skip to content

Commit 8fad86d

Browse files
tokangasrlubos
authored andcommitted
samples: cellular: modem_shell: Make cJSON use system heap with CoAP
Make nRF Cloud and cJSON libraries use system heap instead of kernel heap also with CoAP transport. This is needed to avoid running out of memory in some use cases. MOSH-596 Signed-off-by: Tommi Kangas <[email protected]>
1 parent e0f3813 commit 8fad86d

File tree

1 file changed

+2
-1
lines changed
  • samples/cellular/modem_shell/src

1 file changed

+2
-1
lines changed

samples/cellular/modem_shell/src/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ int main(void)
259259

260260
mosh_print_version_info();
261261

262-
#if defined(CONFIG_NRF_CLOUD_REST) || defined(CONFIG_NRF_CLOUD_MQTT)
262+
#if defined(CONFIG_NRF_CLOUD_REST) || defined(CONFIG_NRF_CLOUD_MQTT) || \
263+
defined(CONFIG_NRF_CLOUD_COAP)
263264
#if defined(CONFIG_MOSH_IPERF3)
264265
/* Due to iperf3, we cannot let nrf cloud lib to initialize cJSON lib to be
265266
* using kernel heap allocations (i.e. k_ prepending functions).

0 commit comments

Comments
 (0)