Browse Source

Making Emon Sensor params overrideable (#1290)

* Allowing Emon sensor parameters to be naturally overridden

* blocking get adminPass for security reasons

* Fixing missing 's' in adminPass blocked message

* Revert "blocking get adminPass for security reasons"
alexa
Marcos Pérez Ferro 6 years ago
committed by Max Prokhorov
parent
commit
777e7a845c
1 changed files with 17 additions and 1 deletions
  1. +17
    -1
      code/espurna/config/sensors.h

+ 17
- 1
code/espurna/config/sensors.h View File

@ -295,12 +295,28 @@
#define EMON_MAX_SAMPLES 1000 // Max number of samples to get #define EMON_MAX_SAMPLES 1000 // Max number of samples to get
#define EMON_MAX_TIME 250 // Max time in ms to sample #define EMON_MAX_TIME 250 // Max time in ms to sample
#define EMON_FILTER_SPEED 512 // Mobile average filter speed #define EMON_FILTER_SPEED 512 // Mobile average filter speed
#define EMON_MAINS_VOLTAGE 230 // Mains voltage
#define EMON_REFERENCE_VOLTAGE 3.3 // Reference voltage of the ADC #define EMON_REFERENCE_VOLTAGE 3.3 // Reference voltage of the ADC
#ifndef EMON_MAINS_VOLTAGE
#define EMON_MAINS_VOLTAGE 230 // Mains voltage
#endif
#ifndef EMON_CURRENT_RATIO
#define EMON_CURRENT_RATIO 30 // Current ratio in the clamp (30A/1V) #define EMON_CURRENT_RATIO 30 // Current ratio in the clamp (30A/1V)
#endif
#ifndef EMON_REPORT_CURRENT
#define EMON_REPORT_CURRENT 0 // Report current #define EMON_REPORT_CURRENT 0 // Report current
#endif
#ifndef EMON_REPORT_POWER
#define EMON_REPORT_POWER 1 // Report power #define EMON_REPORT_POWER 1 // Report power
#endif
#ifndef EMON_REPORT_ENERGY
#define EMON_REPORT_ENERGY 1 // Report energy #define EMON_REPORT_ENERGY 1 // Report energy
#endif
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// Energy Monitor based on ADC121 // Energy Monitor based on ADC121


Loading…
Cancel
Save