EnigmaIOT  0.9.3
Secure sensor and gateway platform based on ESP8266 and ESP32
Classes | Macros | Variables
GwOutput_mqtt.h File Reference

MQTT Gateway output module. More...

#include "WProgram.h"
#include <GwOutput_generic.h>
#include "dstrootca.h"
#include <ESPAsyncWiFiManager.h>
#include <EnigmaIOTGateway.h>
#include <PubSubClient.h>
#include <queue>
#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 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 NODE_DATA   "data"
 
#define LOST_MESSAGES   "debug/lostmessages"
 
#define NODE_STATUS   "status"
 
#define GW_STATUS   "/gateway/status"
 

Variables

constexpr auto CONFIG_FILE = "/mqtt.json"
 MQTT outout configuration file name. More...
 
GwOutput_MQTT GwOutput
 

Detailed Description

MQTT Gateway output module.

Version
0.9.3
Date
14/07/2020
Author
German Martin Module to send and receive EnigmaIOT information from MQTT broker

Definition in file GwOutput_mqtt.h.

Macro Definition Documentation

◆ GET_NAME

#define GET_NAME   "get/name"

Definition at line 47 of file GwOutput_mqtt.h.

◆ GET_NAME_ANS

#define GET_NAME_ANS   "result/name"

Definition at line 49 of file GwOutput_mqtt.h.

◆ GET_RSSI

#define GET_RSSI   "get/rssi"

Definition at line 45 of file GwOutput_mqtt.h.

◆ GET_RSSI_ANS

#define GET_RSSI_ANS   "result/rssi"

Definition at line 46 of file GwOutput_mqtt.h.

◆ GET_SLEEP

#define GET_SLEEP   "get/sleeptime"

Definition at line 37 of file GwOutput_mqtt.h.

◆ GET_SLEEP_ANS

#define GET_SLEEP_ANS   "result/sleeptime"

Definition at line 38 of file GwOutput_mqtt.h.

◆ GET_USER_DATA

#define GET_USER_DATA   "get/data"

Definition at line 51 of file GwOutput_mqtt.h.

◆ GET_VERSION

#define GET_VERSION   "get/version"

Definition at line 35 of file GwOutput_mqtt.h.

◆ GET_VERSION_ANS

#define GET_VERSION_ANS   "result/version"

Definition at line 36 of file GwOutput_mqtt.h.

◆ GW_STATUS

#define GW_STATUS   "/gateway/status"

Definition at line 55 of file GwOutput_mqtt.h.

◆ LOST_MESSAGES

#define LOST_MESSAGES   "debug/lostmessages"

Definition at line 53 of file GwOutput_mqtt.h.

◆ NODE_DATA

#define NODE_DATA   "data"

Definition at line 52 of file GwOutput_mqtt.h.

◆ NODE_STATUS

#define NODE_STATUS   "status"

Definition at line 54 of file GwOutput_mqtt.h.

◆ SET_IDENTIFY

#define SET_IDENTIFY   "set/identify"

Definition at line 42 of file GwOutput_mqtt.h.

◆ SET_NAME

#define SET_NAME   "set/name"

Definition at line 48 of file GwOutput_mqtt.h.

◆ SET_OTA

#define SET_OTA   "set/ota"

Definition at line 40 of file GwOutput_mqtt.h.

◆ SET_OTA_ANS

#define SET_OTA_ANS   "result/ota"

Definition at line 41 of file GwOutput_mqtt.h.

◆ SET_RESET_ANS

#define SET_RESET_ANS   "result/reset"

Definition at line 44 of file GwOutput_mqtt.h.

◆ SET_RESET_CONFIG

#define SET_RESET_CONFIG   "set/reset"

Definition at line 43 of file GwOutput_mqtt.h.

◆ SET_SLEEP

#define SET_SLEEP   "set/sleeptime"

Definition at line 39 of file GwOutput_mqtt.h.

◆ SET_USER_DATA

#define SET_USER_DATA   "set/data"

Definition at line 50 of file GwOutput_mqtt.h.

Variable Documentation

◆ CONFIG_FILE

constexpr auto CONFIG_FILE = "/mqtt.json"
constexpr

MQTT outout configuration file name.

Definition at line 56 of file GwOutput_mqtt.h.

◆ GwOutput

GwOutput_MQTT GwOutput

Definition at line 29 of file GwOutput_dummy.cpp.