mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
telnet default settings #621
This commit is contained in:
@@ -27,6 +27,8 @@
|
||||
- renamed the command system report (Which dumped debug info) to `info`
|
||||
- Changing settings via web restarts only selected services
|
||||
- renamed pio targets (esp8266-ci and esp32-ci for GitHub CI)
|
||||
- telnet default settings `log info`, timeout 60 min
|
||||
- `log debug` not showing telegram names, use `log trace` or `watch on` to show the telegrams
|
||||
|
||||
### Removed
|
||||
- old shell and python build scripts
|
||||
|
||||
@@ -61,7 +61,7 @@ void Shell::start() {
|
||||
uuid::log::Logger::register_handler(this, uuid::log::Level::DEBUG); // added by proddy
|
||||
//uuid::log::Logger::register_handler(this, uuid::log::Level::INFO); // added by proddy
|
||||
#else
|
||||
uuid::log::Logger::register_handler(this, uuid::log::Level::NOTICE);
|
||||
uuid::log::Logger::register_handler(this, uuid::log::Level::INFO);
|
||||
#endif
|
||||
|
||||
line_buffer_.reserve(maximum_command_line_length_);
|
||||
|
||||
@@ -681,6 +681,7 @@ void Console::start() {
|
||||
// note, this must be started after the network/wifi for ESP32 otherwise it'll crash
|
||||
#ifndef EMSESP_STANDALONE
|
||||
telnet_.start();
|
||||
telnet_.initial_idle_timeout(3600); // in sec, one hour idle timeout
|
||||
telnet_.default_write_timeout(1000); // in ms, socket timeout 1 second
|
||||
#endif
|
||||
|
||||
|
||||
@@ -151,11 +151,11 @@ void DallasSensor::loop() {
|
||||
scancnt_ = 0;
|
||||
} else if (scancnt_ == -2) { // startup
|
||||
firstscan_ = sensors_.size();
|
||||
LOG_DEBUG(F("First scan found %d dallassensor(s). Adding them."), firstscan_);
|
||||
} else if ((scancnt_ <= 0) && (firstscan_ != sensors_.size())) { // check 2 times for no change of sensor #
|
||||
scancnt_ = -3;
|
||||
sensors_.clear(); // restart scaning and clear to get correct numbering
|
||||
}
|
||||
// LOG_DEBUG(F("Found %zu sensor(s). Adding them."), sensors_.size()); // uncomment for debug
|
||||
state_ = State::IDLE;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -332,7 +332,7 @@ bool EMSdevice::handle_telegram(std::shared_ptr<const Telegram> telegram) {
|
||||
return false;
|
||||
}
|
||||
|
||||
EMSESP::logger().debug(F("Received %s"), uuid::read_flash_string(tf.telegram_type_name_).c_str());
|
||||
// EMSESP::logger().debug(F("Received %s"), uuid::read_flash_string(tf.telegram_type_name_).c_str());
|
||||
tf.process_function_(telegram);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user