diff --git a/main/networking/mqtt/core_mqtt_agent_manager.c b/main/networking/mqtt/core_mqtt_agent_manager.c index 9f65ede..069c2cf 100644 --- a/main/networking/mqtt/core_mqtt_agent_manager.c +++ b/main/networking/mqtt/core_mqtt_agent_manager.c @@ -586,6 +586,9 @@ static MQTTStatus_t prvCoreMqttAgentInit( NetworkContext_t * pxNetworkContext ) xTransport.send = espTlsTransportSend; xTransport.recv = espTlsTransportRecv; + vTlsSetConnectTimeout( 3000 ); + vTlsSetRecvTimeout( 100 ); + /* Initialize MQTT library. */ xReturn = MQTTAgent_Init( &xGlobalMqttAgentContext, &xMessageInterface,