golioth / golioth-zephyr-sdk

Golioth SDK For Zephyr
https://www.golioth.io
Apache License 2.0
67 stars 19 forks source link

fw: gracefully handle case when no releases were rolled out yet #284

Closed mniestroj closed 1 year ago

mniestroj commented 1 year ago

So far those log messages were printed when there were no dfu releases rolled out yet:

  <err> golioth: Failed to get manifest bstr: 34 (QCBOR_ERR_LABEL_NOT_FOUND)
  <err> golioth_dfu: Failed to parse desired version: -13

Handle the case when sequence-number is not found in CBOR map and return -ENOENT to signal no "desired version". Handle that in samples/dfu/ application, so that following log messages are printed instead:

  <inf> golioth_dfu: No release rolled out yet
github-actions[bot] commented 1 year ago

Visit the preview URL for this PR (updated for commit 83338b8):

https://golioth-zephyr-sdk-doxygen-dev--pr284-fw-handle-no-rol-qi5d2crh.web.app

(expires Thu, 22 Sep 2022 16:57:47 GMT)

🔥 via Firebase Hosting GitHub Action 🌎