golioth / golioth-zephyr-sdk

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

settings: option to persist Golioth settings #250

Closed ncmiller closed 2 years ago

ncmiller commented 2 years ago

Main commit

Settings will be stored to persistent storage (via Zephyr's Settings subsystem), but only if the user's settings callback returns success, indicating the setting is known and valid.

The intended use is for users that need access to their settings before connecting to Golioth. It's up to the user to retrieve the settings out of the Zephyr Settings subsystem, if desired.

Additional related commit

settings_shell: support to get nonprintable values

If the setting is not a printable string, then "settings get" will not display anything useful.

If the value contains nonprintable characters, we will hex dump the value.

github-actions[bot] commented 2 years ago

Visit the preview URL for this PR (updated for commit 47a9b9a):

https://golioth-zephyr-sdk-doxygen-dev--pr250-nick-settings-in-sn3npi5p.web.app

(expires Wed, 17 Aug 2022 15:33:00 GMT)

🔥 via Firebase Hosting GitHub Action 🌎