oberfritze
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
14 additions and
3 deletions
-
src/config/config.h
-
src/config/settings.h
|
|
@ -71,8 +71,8 @@ |
|
|
|
// number of packets hold in buffer
|
|
|
|
#define PACKET_BUFFER_SIZE 30 |
|
|
|
|
|
|
|
// number of configurable inverters
|
|
|
|
#define MAX_NUM_INVERTERS 10 |
|
|
|
// number of configurable inverters (increase if you need, and if there is enough heap available for stable operation)
|
|
|
|
#define MAX_NUM_INVERTERS 2 |
|
|
|
|
|
|
|
// default serial interval
|
|
|
|
#define SERIAL_INTERVAL 5 |
|
|
@ -110,6 +110,15 @@ |
|
|
|
// NTP refresh interval in ms (default 12h)
|
|
|
|
#define NTP_REFRESH_INTERVAL 12 * 3600 * 1000 |
|
|
|
|
|
|
|
#define AHOY_SML_OBIS_SUPPORT |
|
|
|
#ifdef AHOY_SML_OBIS_SUPPORT |
|
|
|
#define AHOY_CHARTDATA_HDR "Time, AC Power, Net Power" |
|
|
|
#else |
|
|
|
#define AHOY_CHARTDATA_HDR "Time, AC Power" |
|
|
|
#endif |
|
|
|
|
|
|
|
// #define AHOY_MQTT_SUPPORT
|
|
|
|
|
|
|
|
// default mqtt interval
|
|
|
|
#define MQTT_INTERVAL 90 |
|
|
|
|
|
|
@ -128,6 +137,9 @@ |
|
|
|
// default MQTT topic
|
|
|
|
#define DEF_MQTT_TOPIC "inverter" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// discovery prefix
|
|
|
|
#define MQTT_DISCOVERY_PREFIX "homeassistant" |
|
|
|
|
|
|
|
|
|
@ -50,7 +50,6 @@ |
|
|
|
#define DEF_PROT_API 0x0000 |
|
|
|
#define DEF_PROT_MQTT 0x0000 |
|
|
|
|
|
|
|
|
|
|
|
typedef struct { |
|
|
|
uint8_t ip[4]; // ip address
|
|
|
|
uint8_t mask[4]; // sub mask
|
|
|
|