Zigbee Protocol Controller 1.6.0
mqtt_client_fsm.hpp
Go to the documentation of this file.
1/******************************************************************************
2 * # License
3 * <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b>
4 ******************************************************************************
5 * The licensor of this software is Silicon Laboratories Inc. Your use of this
6 * software is governed by the terms of Silicon Labs Master Software License
7 * Agreement (MSLA) available at
8 * www.silabs.com/about-us/legal/master-software-license-agreement. This
9 * software is distributed to you in Source Code format and is governed by the
10 * sections of the MSLA applicable to Source Code.
11 *
12 *****************************************************************************/
13#ifndef MQTT_CLIENT_FSM_H
14#define MQTT_CLIENT_FSM_H
15
16// Forward-declare the client-struct/class.
17struct mqtt_client;
18
20{
21 public:
22 virtual void enter(mqtt_client *client_instance) = 0;
23 virtual void exit(mqtt_client *client_instance) = 0;
24 virtual void event(int incoming_event, mqtt_client *client_instance) = 0;
25 virtual ~mqtt_client_fsm() {}
26};
27
29{
30 public:
33 void event(int incoming_event, mqtt_client *client_instance) override;
35
36 private:
41};
42
44{
45 public:
48 void event(int incoming_event, mqtt_client *client_instance) override;
50
51 private:
56};
57
59{
60 public:
63 void event(int incoming_event, mqtt_client *client_instance) override;
65
66 private:
70};
71
72#endif // MQTT_CLIENT_FSM_H
Definition: mqtt_client_fsm.hpp:59
mqtt_client_fsm_connected(const mqtt_client_fsm_connected &other)
void enter(mqtt_client *client_instance) override
mqtt_client_fsm_connected()
Definition: mqtt_client_fsm.hpp:67
static mqtt_client_fsm & get_instance()
void event(int incoming_event, mqtt_client *client_instance) override
mqtt_client_fsm_connected & operator=(const mqtt_client_fsm_connected &other)
void exit(mqtt_client *client_instance) override
Definition: mqtt_client_fsm.hpp:44
void event(int incoming_event, mqtt_client *client_instance) override
static mqtt_client_fsm & get_instance()
mqtt_client_fsm_connecting()
Definition: mqtt_client_fsm.hpp:52
void exit(mqtt_client *client_instance) override
mqtt_client_fsm_connecting & operator=(const mqtt_client_fsm_connecting &other)
mqtt_client_fsm_connecting(const mqtt_client_fsm_connecting &other)
void enter(mqtt_client *client_instance) override
Definition: mqtt_client_fsm.hpp:29
void enter(mqtt_client *client_instance) override
static mqtt_client_fsm & get_instance()
mqtt_client_fsm_disconnected & operator=(const mqtt_client_fsm_disconnected &other)
mqtt_client_fsm_disconnected(const mqtt_client_fsm_disconnected &other)
void exit(mqtt_client *client_instance) override
mqtt_client_fsm_disconnected()
Definition: mqtt_client_fsm.hpp:37
void event(int incoming_event, mqtt_client *client_instance) override
Definition: mqtt_client_fsm.hpp:20
virtual void event(int incoming_event, mqtt_client *client_instance)=0
virtual ~mqtt_client_fsm()
Definition: mqtt_client_fsm.hpp:25
virtual void exit(mqtt_client *client_instance)=0
virtual void enter(mqtt_client *client_instance)=0
Definition: mqtt_client.hpp:41
mqtt_client_t client_instance
Definition: uic_mqtt.c:39