Soletta™ Framework
|
Server Configuration. More...
#include <sol-mqtt.h>
Data Fields | |
uint16_t | api_version |
Should always be set to SOL_MQTT_CONFIG_API_VERSION. More... | |
const struct sol_cert * | ca_cert |
CA Certificate for SSL connections. More... | |
bool | clean_session |
If set, the broker will drop all messages and subscriptions when the client disconnects. More... | |
const struct sol_cert * | client_cert |
Client certificate for SSL connections. More... | |
const char * | client_id |
NULL terminated string that should be used as client ID. More... | |
const void * | data |
User data provided to the callbacks. More... | |
const struct sol_mqtt_handlers | handlers |
Handlers to be used with this connection. More... | |
const char * | host |
The host address of the MQTT broker. More... | |
time_t | keep_alive |
Time interval between PING messages that should be sent by the broker to the client in miliseconds. More... | |
const char * | password |
NULL terminated string with the password. More... | |
uint16_t | port |
The host port to connect. More... | |
const struct sol_cert * | private_key |
Private key for SSL connections. More... | |
const char * | username |
NULL terminated string with the username. More... | |
const struct sol_mqtt_message * | will |
A message that the broker should send when the client disconnects. More... | |
Server Configuration.
uint16_t sol_mqtt_config::api_version |
Should always be set to SOL_MQTT_CONFIG_API_VERSION.
Referenced by main().
const struct sol_cert* sol_mqtt_config::ca_cert |
CA Certificate for SSL connections.
bool sol_mqtt_config::clean_session |
If set, the broker will drop all messages and subscriptions when the client disconnects.
Must be set if no client id is provided.
const struct sol_cert* sol_mqtt_config::client_cert |
Client certificate for SSL connections.
const char* sol_mqtt_config::client_id |
NULL terminated string that should be used as client ID.
If not set, clean_session must be set to true.
const void* sol_mqtt_config::data |
User data provided to the callbacks.
const struct sol_mqtt_handlers sol_mqtt_config::handlers |
Handlers to be used with this connection.
const char* sol_mqtt_config::host |
The host address of the MQTT broker.
Referenced by main().
time_t sol_mqtt_config::keep_alive |
Time interval between PING messages that should be sent by the broker to the client in miliseconds.
const char* sol_mqtt_config::password |
NULL terminated string with the password.
uint16_t sol_mqtt_config::port |
The host port to connect.
Referenced by main().
const struct sol_cert* sol_mqtt_config::private_key |
Private key for SSL connections.
const char* sol_mqtt_config::username |
NULL terminated string with the username.
const struct sol_mqtt_message* sol_mqtt_config::will |
A message that the broker should send when the client disconnects.