GPIOInput Third Time is a Charm! (#258)
* Added 2 files via upload * Update OpenMQTTGateway.ino * Update Test_config.h
This commit is contained in:
1 parent
19c89d9dc8
commit
0f118c2020
4 files changed
+132
-1
No files matched your search
+12
-1
@@ -106,7 +106,9 @@
|
||||
#ifdef ZgatewayRFM69
|
||||
#include "config_RFM69.h"
|
||||
#endif
|
||||
|
||||
#ifdef ZsensorGPIOInput
|
||||
#include "config_GPIOInput.h"
|
||||
#endif
|
||||
// array to store previous received RFs, IRs codes and their timestamps
|
||||
#if defined(ESP8266) || defined(ESP32)
|
||||
#define array_size 12
|
||||
@@ -370,6 +372,9 @@ void setup()
|
||||
#ifdef ZsensorHCSR501
|
||||
setupHCSR501();
|
||||
#endif
|
||||
#ifdef ZsensorGPIOInput
|
||||
setupGPIOInput();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -606,6 +611,9 @@ void loop()
|
||||
#ifdef ZsensorHCSR501
|
||||
MeasureHCSR501();
|
||||
#endif
|
||||
#ifdef ZsensorGPIOInput
|
||||
MeasureGPIOInput();
|
||||
#endif
|
||||
#ifdef ZsensorADC
|
||||
MeasureADC(); //Addon to measure the analog value of analog pin
|
||||
#endif
|
||||
@@ -733,6 +741,9 @@ void stateMeasures(){
|
||||
#ifdef ZsensorHCSR501
|
||||
modules = modules + ZsensorHCSR501;
|
||||
#endif
|
||||
#ifdef ZsensorGPIOInput
|
||||
modules = modules + ZsensorGPIOInput;
|
||||
#endif
|
||||
SYSdata["modules"] = modules;
|
||||
trc(modules);
|
||||
char JSONmessageBuffer[100];
|
||||
|
||||
Reference in new issue
Block a user