Added configuration of CMT modules frequency to webapp

This commit is contained in:
Thomas Basler
2023-03-30 20:46:27 +02:00
parent 5e11f0b854
commit 371e405eed
11 changed files with 43 additions and 2 deletions

View File

@@ -84,6 +84,7 @@ struct CONFIG_T {
uint32_t Dtu_PollInterval;
uint8_t Dtu_NrfPaLevel;
int8_t Dtu_CmtPaLevel;
uint32_t Dtu_CmtFrequency;
bool Mqtt_Hass_Enabled;
bool Mqtt_Hass_Retain;

View File

@@ -13,6 +13,7 @@ enum WebApiError {
DtuSerialZero,
DtuPollZero,
DtuInvalidPowerLevel,
DtuInvalidCmtFrequency,
ConfigBase = 3000,
ConfigNotDeleted,

View File

@@ -78,6 +78,7 @@
#define DTU_POLL_INTERVAL 5
#define DTU_NRF_PA_LEVEL 0
#define DTU_CMT_PA_LEVEL 0
#define DTU_CMT_FREQUENCY 865000
#define MQTT_HASS_ENABLED false
#define MQTT_HASS_EXPIRE true