|
oveRTOS C++ API
C++20 RAII wrappers for the oveRTOS C API
|
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} |
MQTT connection configuration.
Mirrors ove_mqtt_config_t with C++ default member initialisers.
| const char* ove::mqtt::Config::host {} |
Broker hostname or IP.
| uint16_t ove::mqtt::Config::port {1883} |
Broker port (1883 or 8883).
| const char* ove::mqtt::Config::client_id {} |
Client identifier.
| const char* ove::mqtt::Config::username {} |
Username (may be nullptr).
| const char* ove::mqtt::Config::password {} |
Password (may be nullptr).
| uint16_t ove::mqtt::Config::keep_alive_s {30} |
Keep-alive interval in seconds.
| bool ove::mqtt::Config::use_tls {false} |
Set true to enable TLS.