RN8209 energy sensor support with watt, voltage and current. (#1337)
Co-authored-by: h2zero <powellperalta@gmail.com>
This commit is contained in:
1 parent
145896516d
commit
8ee1c4e524
7 files changed
+173
-9
No files matched your search
@@ -120,6 +120,9 @@ struct GfSun2000Data {};
|
||||
#ifdef ZsensorAHTx0
|
||||
# include "config_AHTx0.h"
|
||||
#endif
|
||||
#ifdef ZsensorRN8209
|
||||
# include "config_RN8209.h"
|
||||
#endif
|
||||
#ifdef ZsensorHCSR04
|
||||
# include "config_HCSR04.h"
|
||||
#endif
|
||||
@@ -210,6 +213,8 @@ static String ota_server_cert = "";
|
||||
# include <nvs.h>
|
||||
# include <nvs_flash.h>
|
||||
|
||||
bool ProcessLock = false; // Process lock when we want to use a critical function like OTA for example
|
||||
|
||||
# ifdef ESP32_ETHERNET
|
||||
# include <ETH.h>
|
||||
void WiFiEvent(WiFiEvent_t event);
|
||||
@@ -863,6 +868,10 @@ void setup() {
|
||||
# endif
|
||||
# define ACTIVE_RECEIVER ACTIVE_RTL
|
||||
#endif
|
||||
#ifdef ZsensorRN8209
|
||||
setupRN8209();
|
||||
modules.add(ZsensorRN8209);
|
||||
#endif
|
||||
#if defined(ZgatewayRTL_433) || defined(ZgatewayRF) || defined(ZgatewayPilight) || defined(ZgatewayRF2)
|
||||
# ifdef DEFAULT_RECEIVER // Allow defining of default receiver as a compiler directive
|
||||
activeReceiver = DEFAULT_RECEIVER;
|
||||
|
||||
Reference in new issue
Block a user