ESPectre SDK 2.8.0-280-gac7af68
Wi-Fi CSI motion sensing for ESP32 firmware
Loading...
Searching...
No Matches
espectre::EspectreDeviceConfig Struct Reference

Device identity and broker settings. More...

#include <espectre_protocol.h>

Public Attributes

uint64_t device_id {ESPECTRE_DEFAULT_DEVICE_ID}
 Stable device identity.
std::string device_label {ESPECTRE_DEFAULT_DEVICE_LABEL}
 Human-readable name.
std::string mqtt_host
 Broker hostname or IP.
uint16_t mqtt_port {1883}
std::string mqtt_username
 Broker credentials.
std::string mqtt_password
std::string topic_prefix {ESPECTRE_TOPIC_PREFIX}
 Topic root.

Detailed Description

Device identity and broker settings.

Frontends persist this so a device keeps its identity and connection across reboots and reprovisioning.

Definition at line 68 of file espectre_protocol.h.

Member Data Documentation

◆ device_id

uint64_t espectre::EspectreDeviceConfig::device_id {ESPECTRE_DEFAULT_DEVICE_ID}

Stable device identity.

Zero means use the runtime-generated value.

Definition at line 70 of file espectre_protocol.h.

◆ device_label

std::string espectre::EspectreDeviceConfig::device_label {ESPECTRE_DEFAULT_DEVICE_LABEL}

Human-readable name.

Empty falls back to the formatted device id.

Definition at line 72 of file espectre_protocol.h.

◆ mqtt_host

std::string espectre::EspectreDeviceConfig::mqtt_host

Broker hostname or IP.

Empty disables MQTT: IMqttTransport::setup() fails.

Definition at line 74 of file espectre_protocol.h.

◆ mqtt_port

uint16_t espectre::EspectreDeviceConfig::mqtt_port {1883}

Definition at line 75 of file espectre_protocol.h.

◆ mqtt_username

std::string espectre::EspectreDeviceConfig::mqtt_username

Broker credentials.

Leave empty for anonymous brokers.

Definition at line 77 of file espectre_protocol.h.

◆ mqtt_password

std::string espectre::EspectreDeviceConfig::mqtt_password

Definition at line 78 of file espectre_protocol.h.

◆ topic_prefix

std::string espectre::EspectreDeviceConfig::topic_prefix {ESPECTRE_TOPIC_PREFIX}

Topic root.

Change it only if you also change every consumer.

Definition at line 80 of file espectre_protocol.h.


The documentation for this struct was generated from the following file: