Skip to content

Commit

Permalink
samples: cellular: nrf_cloud_multi_service: Fix at cmd handling
Browse files Browse the repository at this point in the history
In handle_at_cmd_requests() we need to initialize msg_obj so
that the parser used in nrf_cloud_obj_input_decode() operates correctly.

Jira: IRIS-9984

Signed-off-by: Pete Skeggs <[email protected]>
  • Loading branch information
plskeggs committed Jan 2, 2025
1 parent 61dde25 commit 13c7f75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@ Cellular samples
* Removed the ``CONFIG_MOSH_LINK`` Kconfig option.
The link control functionality is now always enabled and cannot be disabled.

* :ref:`nrf_cloud_multi_service` sample:

* Fixed an uninitialized variable problem in the :c:func:`handle_at_cmd_requests` function.

Cryptography samples
--------------------

Expand Down
2 changes: 1 addition & 1 deletion samples/cellular/nrf_cloud_multi_service/src/application.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ static void on_location_update(const struct location_event_data * const location
static void handle_at_cmd_requests(const struct nrf_cloud_data *const dev_msg)
{
char *cmd;
struct nrf_cloud_obj msg_obj;
NRF_CLOUD_OBJ_DEFINE(msg_obj, NRF_CLOUD_OBJ_TYPE__UNDEFINED);
int err = nrf_cloud_obj_input_decode(&msg_obj, dev_msg);

if (err) {
Expand Down

0 comments on commit 13c7f75

Please sign in to comment.