Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

Detect and handle when MQTT URI hasn't been set #81

@vringar

Description

@vringar

Currently if the user forgot to setup their config properly, matterHub will just read the empty string and crash:

I (1245) MQTT: This is my name:  and this is my key
I (1245) MQTT: [APP] Free memory: 130232 bytes
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.

IDK if we can use __static_assert or something else in the build to detect that this is unset and refuse to build.
Or we crash at runtime with a descriptive error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    MatterHubConcerns our ESP32enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions