Skip to content

Commit

Permalink
Merge tag 'template_v2.2.1' into szczys/merge_template_v2.2.1
Browse files Browse the repository at this point in the history
template_v2.2.1
  • Loading branch information
szczys committed May 31, 2024
2 parents d9be87f + 1574d4d commit 79e98d1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions src/app_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,21 @@ int app_state_observe(struct golioth_client *state_client)

client = state_client;

err = golioth_lightdb_observe_async(client, APP_STATE_DESIRED_UP_ENDP,
app_state_desired_handler, (void *) COUNTER_UP);
err = golioth_lightdb_observe_async(client,
APP_STATE_DESIRED_UP_ENDP,
GOLIOTH_CONTENT_TYPE_JSON,
app_state_desired_handler,
(void *) COUNTER_UP);
if (err) {
LOG_WRN("failed to observe lightdb path: %d", err);
return err;
}
err = golioth_lightdb_observe_async(client, APP_STATE_DESIRED_DN_ENDP,
app_state_desired_handler, (void *) COUNTER_DN);

err = golioth_lightdb_observe_async(client,
APP_STATE_DESIRED_DN_ENDP,
GOLIOTH_CONTENT_TYPE_JSON,
app_state_desired_handler,
(void *) COUNTER_DN);
if (err) {
LOG_WRN("failed to observe lightdb path: %d", err);
return err;
Expand Down
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ manifest:
projects:
- name: golioth
path: modules/lib/golioth-firmware-sdk
revision: v0.12.2
revision: v0.13.1
url: https://github.com/golioth/golioth-firmware-sdk.git
west-commands: scripts/west-commands.yml
submodules: true
Expand Down

0 comments on commit 79e98d1

Please sign in to comment.