mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
change modbus timeout to seconds and default 300 sec, #2254
This commit is contained in:
@@ -134,7 +134,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef EMSESP_DEFAULT_MODBUS_TIMEOUT
|
||||
#define EMSESP_DEFAULT_MODBUS_TIMEOUT 10000
|
||||
#define EMSESP_DEFAULT_MODBUS_TIMEOUT 300
|
||||
#endif
|
||||
|
||||
#ifndef EMSESP_DEFAULT_BOARD_PROFILE
|
||||
|
||||
@@ -1689,7 +1689,7 @@ void EMSESP::start() {
|
||||
// start services
|
||||
if (system_.modbus_enabled()) {
|
||||
modbus_ = new Modbus;
|
||||
modbus_->start(1, system_.modbus_port(), system_.modbus_max_clients(), system_.modbus_timeout());
|
||||
modbus_->start(1, system_.modbus_port(), system_.modbus_max_clients(), system_.modbus_timeout() * 1000);
|
||||
}
|
||||
mqtt_.start(); // mqtt init
|
||||
system_.start(); // starts commands, led, adc, button, network (sets hostname), syslog & uart
|
||||
|
||||
Reference in New Issue
Block a user