Leosac  0.8.0
Open Source Access Control
mqtt_callback Class Reference
+ Inheritance diagram for mqtt_callback:
+ Collaboration diagram for mqtt_callback:

Public Member Functions

 mqtt_callback (std::shared_ptr< mqtt::async_client > cli, mqtt::connect_options &connOpts, MqttExternalServer &server)
 

Private Member Functions

void reconnect ()
 
void on_failure (const mqtt::token &tok) override
 
void on_success (const mqtt::token &tok) override
 
void connected (const std::string &cause) override
 
void connection_lost (const std::string &cause) override
 
void message_arrived (mqtt::const_message_ptr msg) override
 
void delivery_complete (mqtt::delivery_token_ptr tok) override
 

Private Attributes

int nretry_
 
std::shared_ptr< mqtt::async_client > cli_
 
mqtt::connect_options & connOpts_
 
MqttExternalServerserver_
 

Detailed Description

Definition at line 33 of file MqttExternalServer.cpp.

Constructor & Destructor Documentation

◆ mqtt_callback()

mqtt_callback::mqtt_callback ( std::shared_ptr< mqtt::async_client >  cli,
mqtt::connect_options &  connOpts,
MqttExternalServer server 
)
inline

Definition at line 112 of file MqttExternalServer.cpp.

Member Function Documentation

◆ connected()

void mqtt_callback::connected ( const std::string &  cause)
inlineoverrideprivate

Definition at line 75 of file MqttExternalServer.cpp.

◆ connection_lost()

void mqtt_callback::connection_lost ( const std::string &  cause)
inlineoverrideprivate

Definition at line 85 of file MqttExternalServer.cpp.

◆ delivery_complete()

void mqtt_callback::delivery_complete ( mqtt::delivery_token_ptr  tok)
inlineoverrideprivate

Definition at line 107 of file MqttExternalServer.cpp.

◆ message_arrived()

void mqtt_callback::message_arrived ( mqtt::const_message_ptr  msg)
inlineoverrideprivate

Definition at line 98 of file MqttExternalServer.cpp.

◆ on_failure()

void mqtt_callback::on_failure ( const mqtt::token &  tok)
inlineoverrideprivate

Definition at line 58 of file MqttExternalServer.cpp.

◆ on_success()

void mqtt_callback::on_success ( const mqtt::token &  tok)
inlineoverrideprivate

Definition at line 71 of file MqttExternalServer.cpp.

◆ reconnect()

void mqtt_callback::reconnect ( )
inlineprivate

Definition at line 44 of file MqttExternalServer.cpp.

Member Data Documentation

◆ cli_

std::shared_ptr<mqtt::async_client> mqtt_callback::cli_
private

Definition at line 39 of file MqttExternalServer.cpp.

◆ connOpts_

mqtt::connect_options& mqtt_callback::connOpts_
private

Definition at line 41 of file MqttExternalServer.cpp.

◆ nretry_

int mqtt_callback::nretry_
private

Definition at line 37 of file MqttExternalServer.cpp.

◆ server_

MqttExternalServer& mqtt_callback::server_
private

Definition at line 42 of file MqttExternalServer.cpp.


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