1 parent
a4f571e77e
commit
c2e55956e9
3 files changed
+151
-1
No files matched your search
+12
-1
@@ -109,6 +109,9 @@
|
||||
#ifdef ZsensorGPIOInput
|
||||
#include "config_GPIOInput.h"
|
||||
#endif
|
||||
#ifdef ZsensorGPIOKeyCode
|
||||
#include "config_GPIOKeyCode.h"
|
||||
#endif
|
||||
// array to store previous received RFs, IRs codes and their timestamps
|
||||
#if defined(ESP8266) || defined(ESP32) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1280__)
|
||||
#define MQTT_MAX_PACKET_SIZE 1024
|
||||
@@ -381,7 +384,9 @@ void setup()
|
||||
#ifdef ZsensorGPIOInput
|
||||
setupGPIOInput();
|
||||
#endif
|
||||
|
||||
#ifdef ZsensorGPIOKeyCode
|
||||
setupGPIOKeyCode();
|
||||
#endif
|
||||
trc(F("MQTT_MAX_PACKET_SIZE"));
|
||||
trc(MQTT_MAX_PACKET_SIZE);
|
||||
trc(F("Setup OpenMQTTGateway end"));
|
||||
@@ -630,6 +635,9 @@ void loop()
|
||||
#ifdef ZsensorGPIOInput
|
||||
MeasureGPIOInput();
|
||||
#endif
|
||||
#ifdef ZsensorGPIOKeyCode
|
||||
MeasureGPIOKeyCode();
|
||||
#endif
|
||||
#ifdef ZsensorADC
|
||||
MeasureADC(); //Addon to measure the analog value of analog pin
|
||||
#endif
|
||||
@@ -770,6 +778,9 @@ void stateMeasures(){
|
||||
#ifdef ZsensorGPIOInput
|
||||
modules = modules + ZsensorGPIOInput;
|
||||
#endif
|
||||
#ifdef ZsensorGPIOKeyCode
|
||||
modules = modules + ZsensorGPIOKeyCode;
|
||||
#endif
|
||||
SYSdata["modules"] = modules;
|
||||
trc(modules);
|
||||
char JSONmessageBuffer[100];
|
||||
|
||||
Reference in new issue
Block a user