2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#ifndef APPS_MQTTBROKER_MQTTBRIDGE_SOCKETCONTEXT_H
43#define APPS_MQTTBROKER_MQTTBRIDGE_SOCKETCONTEXT_H
45namespace mqtt::bridge::
lib {
49#ifndef DOXYGEN_SHOULD_SKIP_THIS
51#include <iot/mqtt/client/Mqtt.h>
56namespace mqtt::bridge::
lib {
60 explicit Mqtt(
const std::string& connectionName,
const Broker& broker);
69 [[nodiscard]]
bool onSignal(
int signum)
final;
void addMqtt(mqtt::bridge::lib::Mqtt *mqtt)
void publish(const mqtt::bridge::lib::Mqtt *originMqtt, const iot::mqtt::packets::Publish &publish)
void removeMqtt(mqtt::bridge::lib::Mqtt *mqtt)
bool getLoopPrevention() const
const std::string & getWillTopic() const
bool getWillRetain() const
const std::list< iot::mqtt::Topic > & getTopics() const
uint16_t getKeepAlive() const
const std::string & getWillMessage() const
const std::string & getSessionStoreFileName() const
const std::string & getClientId() const
const std::string & getUsername() const
bool getCleanSession() const
const std::string & getPassword() const
Bridge & getBridge() const
const std::string & getPrefix() const
uint8_t getWillQoS() const
iot::mqtt::client::Mqtt Super
void onDisconnected() final
bool onSignal(int signum) final
void onPublish(const iot::mqtt::packets::Publish &publish) final
void onConnack(const iot::mqtt::packets::Connack &connack) final
Mqtt(const std::string &connectionName, const Broker &broker)
const Broker & getBroker() const