mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
rename 'stats' to 'data'
This commit is contained in:
11
src/ems.cpp
11
src/ems.cpp
@@ -76,7 +76,7 @@ bool ems_isHT3() {
|
|||||||
return (EMS_Sys_Status.emsIDMask == 0x80);
|
return (EMS_Sys_Status.emsIDMask == 0x80);
|
||||||
}
|
}
|
||||||
|
|
||||||
// init stats and counters and buffers
|
// init EMS device values, counters and buffers
|
||||||
void ems_init() {
|
void ems_init() {
|
||||||
ems_clearDeviceList(); // init the device map
|
ems_clearDeviceList(); // init the device map
|
||||||
|
|
||||||
@@ -742,12 +742,14 @@ void ems_parseTelegram(uint8_t * telegram, uint8_t length) {
|
|||||||
* It may happen that we were interrupted (for instance by WIFI activity) and the
|
* It may happen that we were interrupted (for instance by WIFI activity) and the
|
||||||
* buffer isn't valid anymore, so we must not answer at all...
|
* buffer isn't valid anymore, so we must not answer at all...
|
||||||
*/
|
*/
|
||||||
|
/*
|
||||||
if (EMS_Sys_Status.emsRxStatus != EMS_RX_STATUS_IDLE) {
|
if (EMS_Sys_Status.emsRxStatus != EMS_RX_STATUS_IDLE) {
|
||||||
if (EMS_Sys_Status.emsLogging > EMS_SYS_LOGGING_NONE) {
|
if (EMS_Sys_Status.emsLogging > EMS_SYS_LOGGING_NONE) {
|
||||||
myDebug_P(PSTR("** Warning, we missed the bus - Rx non-idle!"));
|
myDebug_P(PSTR("** Warning, we missed the bus - Rx non-idle!"));
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* check if we just received one byte
|
* check if we just received one byte
|
||||||
@@ -1250,7 +1252,7 @@ void _process_MMPLUSStatusMessage(_EMS_RxTelegram * EMS_RxTelegram) {
|
|||||||
|
|
||||||
// Mixer - 0xAB
|
// Mixer - 0xAB
|
||||||
void _process_MMStatusMessage(_EMS_RxTelegram * EMS_RxTelegram) {
|
void _process_MMStatusMessage(_EMS_RxTelegram * EMS_RxTelegram) {
|
||||||
uint8_t hc = 0; // fixed, for 0xAB (HC1 only
|
uint8_t hc = 0; // fixed, for 0xAB (HC1 only)
|
||||||
EMS_Mixing.hc[hc].active = true;
|
EMS_Mixing.hc[hc].active = true;
|
||||||
|
|
||||||
_setValue(EMS_RxTelegram, &EMS_Mixing.hc[hc].flowTemp, EMS_OFFSET_MMStatusMessage_flow_temp);
|
_setValue(EMS_RxTelegram, &EMS_Mixing.hc[hc].flowTemp, EMS_OFFSET_MMStatusMessage_flow_temp);
|
||||||
@@ -1937,8 +1939,8 @@ void ems_getThermostatValues() {
|
|||||||
* Generic function to return various settings from the thermostat
|
* Generic function to return various settings from the thermostat
|
||||||
*/
|
*/
|
||||||
void ems_getBoilerValues() {
|
void ems_getBoilerValues() {
|
||||||
ems_doReadCommand(EMS_TYPE_UBAMonitorFast, EMS_Boiler.device_id); // get boiler stats, instead of waiting 10secs for the broadcast
|
ems_doReadCommand(EMS_TYPE_UBAMonitorFast, EMS_Boiler.device_id); // get boiler data, instead of waiting 10secs for the broadcast
|
||||||
ems_doReadCommand(EMS_TYPE_UBAMonitorSlow, EMS_Boiler.device_id); // get more boiler stats, instead of waiting 60secs for the broadcast
|
ems_doReadCommand(EMS_TYPE_UBAMonitorSlow, EMS_Boiler.device_id); // get more boiler data, instead of waiting 60secs for the broadcast
|
||||||
ems_doReadCommand(EMS_TYPE_UBAParameterWW, EMS_Boiler.device_id); // get Warm Water values
|
ems_doReadCommand(EMS_TYPE_UBAParameterWW, EMS_Boiler.device_id); // get Warm Water values
|
||||||
ems_doReadCommand(EMS_TYPE_UBAParametersMessage, EMS_Boiler.device_id); // get MC10 boiler values
|
ems_doReadCommand(EMS_TYPE_UBAParametersMessage, EMS_Boiler.device_id); // get MC10 boiler values
|
||||||
ems_doReadCommand(EMS_TYPE_UBATotalUptimeMessage, EMS_Boiler.device_id); // get uptime from boiler
|
ems_doReadCommand(EMS_TYPE_UBATotalUptimeMessage, EMS_Boiler.device_id); // get uptime from boiler
|
||||||
@@ -2567,6 +2569,7 @@ void ems_setFlowTemp(uint8_t temperature) {
|
|||||||
/**
|
/**
|
||||||
* Set the warm water mode to comfort to Eco/Comfort
|
* Set the warm water mode to comfort to Eco/Comfort
|
||||||
* 1 = Hot, 2 = Eco, 3 = Intelligent
|
* 1 = Hot, 2 = Eco, 3 = Intelligent
|
||||||
|
* to 0x33
|
||||||
*/
|
*/
|
||||||
void ems_setWarmWaterModeComfort(uint8_t comfort) {
|
void ems_setWarmWaterModeComfort(uint8_t comfort) {
|
||||||
_EMS_TxTelegram EMS_TxTelegram = EMS_TX_TELEGRAM_NEW; // create new Tx
|
_EMS_TxTelegram EMS_TxTelegram = EMS_TX_TELEGRAM_NEW; // create new Tx
|
||||||
|
|||||||
@@ -253,7 +253,7 @@
|
|||||||
<div class="row form-group">
|
<div class="row form-group">
|
||||||
<label class="col-xs-3">Heartbeat<i style="margin-left: 10px;" class="glyphicon glyphicon-info-sign"
|
<label class="col-xs-3">Heartbeat<i style="margin-left: 10px;" class="glyphicon glyphicon-info-sign"
|
||||||
aria-hidden="true" data-toggle="popover" data-trigger="hover" data-placement="right"
|
aria-hidden="true" data-toggle="popover" data-trigger="hover" data-placement="right"
|
||||||
data-content="Enable or Disable an automatic MQTT topic publish with system stats"></i></label>
|
data-content="Enable or Disable an automatic MQTT topic publish with system status"></i></label>
|
||||||
<div class="col-xs-9">
|
<div class="col-xs-9">
|
||||||
<form>
|
<form>
|
||||||
<label class="radio-inline">
|
<label class="radio-inline">
|
||||||
|
|||||||
Reference in New Issue
Block a user