oveRTOS C++ API
C++20 RAII wrappers for the oveRTOS C API
Loading...
Searching...
No Matches
Public Attributes | List of all members
ove::mqtt::Config Struct Reference

MQTT connection configuration. More...

#include <net_mqtt.hpp>

Public Attributes

const char * host {}
 
uint16_t port {1883}
 
const char * client_id {}
 
const char * username {}
 
const char * password {}
 
uint16_t keep_alive_s {30}
 
bool use_tls {false}
 

Detailed Description

MQTT connection configuration.

Mirrors ove_mqtt_config_t with C++ default member initialisers.

Member Data Documentation

◆ host

const char* ove::mqtt::Config::host {}

Broker hostname or IP.

◆ port

uint16_t ove::mqtt::Config::port {1883}

Broker port (1883 or 8883).

◆ client_id

const char* ove::mqtt::Config::client_id {}

Client identifier.

◆ username

const char* ove::mqtt::Config::username {}

Username (may be nullptr).

◆ password

const char* ove::mqtt::Config::password {}

Password (may be nullptr).

◆ keep_alive_s

uint16_t ove::mqtt::Config::keep_alive_s {30}

Keep-alive interval in seconds.

◆ use_tls

bool ove::mqtt::Config::use_tls {false}

Set true to enable TLS.


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