adjust mqtt socket timeout

This commit is contained in:
Siwat Sirichai 2023-11-07 19:28:21 +07:00
parent 8004da624d
commit 4ed7ca9482
1 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,8 @@ void setup()
lcd_send_command("boot_state.txt=\"Network Initializing . . .\"");
network_begin();
lcd_send_command("boot_state.txt=\"IoT Core Initializing . . .\"");
mqtt_client.setSocketTimeout(1000);
eth.setTimeout(1);
mqtt_connect();
lcd_send_command("boot_state.txt=\"Threads Initializing . . .\"");
thread_initialization();