oberfritze
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
6 additions and
0 deletions
-
src/publisher/pubMqtt.h
-
src/publisher/pubMqttDefs.h
|
@ -8,6 +8,8 @@ |
|
|
#ifndef __PUB_MQTT_H__ |
|
|
#ifndef __PUB_MQTT_H__ |
|
|
#define __PUB_MQTT_H__ |
|
|
#define __PUB_MQTT_H__ |
|
|
|
|
|
|
|
|
|
|
|
#ifdef AHOY_MQTT_SUPPORT |
|
|
|
|
|
|
|
|
#ifdef ESP8266 |
|
|
#ifdef ESP8266 |
|
|
#include <ESP8266WiFi.h> |
|
|
#include <ESP8266WiFi.h> |
|
|
#elif defined(ESP32) |
|
|
#elif defined(ESP32) |
|
@ -675,5 +677,6 @@ class PubMqtt { |
|
|
char mVal[40]; |
|
|
char mVal[40]; |
|
|
discovery_t mDiscovery; |
|
|
discovery_t mDiscovery; |
|
|
}; |
|
|
}; |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
#endif /*__PUB_MQTT_H__*/ |
|
|
#endif /*__PUB_MQTT_H__*/ |
|
|
|
@ -6,6 +6,8 @@ |
|
|
#ifndef __PUB_MQTT_DEFS_H__ |
|
|
#ifndef __PUB_MQTT_DEFS_H__ |
|
|
#define __PUB_MQTT_DEFS_H__ |
|
|
#define __PUB_MQTT_DEFS_H__ |
|
|
|
|
|
|
|
|
|
|
|
#ifdef AHOY_MQTT_SUPPORT |
|
|
|
|
|
|
|
|
#include <Arduino.h> |
|
|
#include <Arduino.h> |
|
|
|
|
|
|
|
|
enum { |
|
|
enum { |
|
@ -92,5 +94,6 @@ enum { |
|
|
const char* const subscr[] PROGMEM = { |
|
|
const char* const subscr[] PROGMEM = { |
|
|
"setup/set_time" |
|
|
"setup/set_time" |
|
|
}; |
|
|
}; |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
#endif /*__PUB_MQTT_DEFS_H__*/ |
|
|
#endif /*__PUB_MQTT_DEFS_H__*/ |
|
|