Review fixes: Serial ERROR→ESP_LOGE, heartbeat→ESP_LOGD
- Replace remaining Serial.println("ERROR:...") with ESP_LOGE in client.cpp
- Add Serial.println("ERROR") for protocol response where needed
- Downgrade heartbeat from ESP_LOGI to ESP_LOGD (not needed in production)
This commit is contained in:
parent
32489fbabb
commit
4aa2a750d9
2 changed files with 8 additions and 5 deletions
|
|
@ -653,7 +653,7 @@ void loop() {
|
|||
if (!otaInProgress && millis() - heartbeat > 60000) {
|
||||
bool anyBle1 = (connActive[0] && bleRelay1[0]) || (connActive[1] && bleRelay1[1]);
|
||||
bool anyBle2 = (connActive[0] && bleRelay2[0]) || (connActive[1] && bleRelay2[1]);
|
||||
ESP_LOGI(TAG, "[heartbeat] R1=%s R2=%s t1=%s t2=%s btn=%s ble1=%s ble2=%s clients=%d",
|
||||
ESP_LOGD(TAG, "[heartbeat] R1=%s R2=%s t1=%s t2=%s btn=%s ble1=%s ble2=%s clients=%d",
|
||||
relay1State ? "ON" : "OFF",
|
||||
relay2State ? "ON" : "OFF",
|
||||
t1Active ? "YES" : "no",
|
||||
|
|
|
|||
Loading…
Reference in a new issue