Skip to content

Multiple callback triggers in 'settings' subsystem #662

Open
@OgnjenX

Description

@OgnjenX

Golioth Firmware SDK Commit Hash

a6115ea

Platform/OS

Zephyr 3.7

Hardware Target

ESP32

What host OS are you using?

Windows 11

Current Behavior

When the device boots, the callback for each registered setting is triggered multiple times (it seems that it is triggered n times where n is the total number of settings - but I can easily be wrong about the exact number).

Expected Behavior

A callback for each setting should be triggered exactly once.

Steps To Reproduce

I'm using Zephyr 3.7 together with Golioth v0.15.0. The target is espressif esp32 WROOM.

Logs, console output, or any kind of debug information

[00:00:19.069,000] hp_golioth_settings: Set MQTT broker name to xxx.com
[00:00:19.072,000] hp_golioth_settings: Set MQTT port to 1883
[00:00:19.412,000] hp_golioth_settings: Set cooling threshold to 2.50
[00:00:19.413,000] hp_golioth_settings: Set MQTT broker name to xxx.com
[00:00:19.416,000] hp_golioth_settings: Set MQTT port to 1883
[00:00:19.692,000] hp_golioth_settings: Set MQTT port to 1883
[00:00:19.692,000] hp_golioth_settings: Set cooling threshold to 2.50
[00:00:19.695,000] hp_golioth_settings: Set MQTT broker name to xxx.com
[00:00:19.985,000] hp_golioth_settings: Set MQTT port to 1883
[00:00:19.987,000] hp_golioth_settings: Set cooling threshold to 2.50
[00:00:19.988,000] hp_golioth_settings: Set MQTT broker name to xxx.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions