|
EnigmaIOT
0.9.8
Secure sensor and gateway platform based on ESP8266 and ESP32
|
MQTT Gateway output module. More...
#include "WProgram.h"#include <GwOutput_generic.h>#include <ESPAsyncWiFiManager.h>#include <EnigmaIOTGateway.h>#include <PubSubClient.h>#include <queue>#include "dstrootca.h"#include <WiFiClient.h>Go to the source code of this file.
Classes | |
| struct | mqttgw_config_t |
| struct | mqtt_queue_item_t |
| class | GwOutput_MQTT |
Macros | |
| #define | MQTT_BUFFER_SIZE 2048 |
| #define | GET_VERSION "get/version" |
| #define | GET_VERSION_ANS "result/version" |
| #define | GET_SLEEP "get/sleeptime" |
| #define | GET_SLEEP_ANS "result/sleeptime" |
| #define | SET_SLEEP "set/sleeptime" |
| #define | SET_OTA "set/ota" |
| #define | SET_OTA_ANS "result/ota" |
| #define | SET_IDENTIFY "set/identify" |
| #define | SET_RESET_CONFIG "set/reset" |
| #define | SET_RESET_ANS "result/reset" |
| #define | GET_RSSI "get/rssi" |
| #define | GET_RSSI_ANS "result/rssi" |
| #define | GET_NAME "get/name" |
| #define | SET_NAME "set/name" |
| #define | GET_NAME_ANS "result/name" |
| #define | SET_USER_DATA "set/data" |
| #define | GET_USER_DATA "get/data" |
| #define | RESTART_NOTIF "restart" |
| #define | NODE_DATA "data" |
| #define | LOST_MESSAGES "debug/lostmessages" |
| #define | NODE_STATUS "status" |
| #define | GW_STATUS "/gateway/status" |
| #define | SET_RESTART_MCU "set/restart" |
Variables | |
| const time_t | STATUS_SEND_PERIOD = 300000 |
| constexpr auto | CONFIG_FILE = "/mqtt.json" |
| MQTT outout configuration file name. More... | |
| constexpr auto | MAX_MQTT_TOPIC_LEN = 100 |
| constexpr auto | MAX_MQTT_PLD_LEN = 2048 |
| GwOutput_MQTT | GwOutput |
MQTT Gateway output module.
Module to send and receive EnigmaIOT information from MQTT broker
Definition in file GwOutput_mqtt.h.
| #define GET_NAME "get/name" |
Definition at line 47 of file GwOutput_mqtt.h.
| #define GET_NAME_ANS "result/name" |
Definition at line 49 of file GwOutput_mqtt.h.
| #define GET_RSSI "get/rssi" |
Definition at line 45 of file GwOutput_mqtt.h.
| #define GET_RSSI_ANS "result/rssi" |
Definition at line 46 of file GwOutput_mqtt.h.
| #define GET_SLEEP "get/sleeptime" |
Definition at line 37 of file GwOutput_mqtt.h.
| #define GET_SLEEP_ANS "result/sleeptime" |
Definition at line 38 of file GwOutput_mqtt.h.
| #define GET_USER_DATA "get/data" |
Definition at line 51 of file GwOutput_mqtt.h.
| #define GET_VERSION "get/version" |
Definition at line 35 of file GwOutput_mqtt.h.
| #define GET_VERSION_ANS "result/version" |
Definition at line 36 of file GwOutput_mqtt.h.
| #define GW_STATUS "/gateway/status" |
Definition at line 56 of file GwOutput_mqtt.h.
| #define LOST_MESSAGES "debug/lostmessages" |
Definition at line 54 of file GwOutput_mqtt.h.
| #define MQTT_BUFFER_SIZE 2048 |
Definition at line 32 of file GwOutput_mqtt.h.
| #define NODE_DATA "data" |
Definition at line 53 of file GwOutput_mqtt.h.
| #define NODE_STATUS "status" |
Definition at line 55 of file GwOutput_mqtt.h.
| #define RESTART_NOTIF "restart" |
Definition at line 52 of file GwOutput_mqtt.h.
| #define SET_IDENTIFY "set/identify" |
Definition at line 42 of file GwOutput_mqtt.h.
| #define SET_NAME "set/name" |
Definition at line 48 of file GwOutput_mqtt.h.
| #define SET_OTA "set/ota" |
Definition at line 40 of file GwOutput_mqtt.h.
| #define SET_OTA_ANS "result/ota" |
Definition at line 41 of file GwOutput_mqtt.h.
| #define SET_RESET_ANS "result/reset" |
Definition at line 44 of file GwOutput_mqtt.h.
| #define SET_RESET_CONFIG "set/reset" |
Definition at line 43 of file GwOutput_mqtt.h.
| #define SET_RESTART_MCU "set/restart" |
Definition at line 57 of file GwOutput_mqtt.h.
| #define SET_SLEEP "set/sleeptime" |
Definition at line 39 of file GwOutput_mqtt.h.
| #define SET_USER_DATA "set/data" |
Definition at line 50 of file GwOutput_mqtt.h.
|
constexpr |
MQTT outout configuration file name.
Definition at line 61 of file GwOutput_mqtt.h.
|
extern |
Definition at line 29 of file GwOutput_dummy.cpp.
|
constexpr |
Definition at line 75 of file GwOutput_mqtt.h.
|
constexpr |
Definition at line 74 of file GwOutput_mqtt.h.
| const time_t STATUS_SEND_PERIOD = 300000 |
Definition at line 59 of file GwOutput_mqtt.h.