Hello!
I found out that if I use
MQTTClient_ConnParams Mqtt_ClientCtx =
{
MQTTCLIENT_NETCONN_URL,
SERVER_ADDRESS,
PORT_NUMBER, 0, 0, 0,
NULL
};
instead of
MQTTClient_ConnParams Mqtt_ClientCtx =
{
MQTTCLIENT_NETCONN_IP4,
SERVER_IP_ADDRESS,
PORT_NUMBER, 0, 0, 0,
NULL
};
Reconnection to broker doenst happen.
I use my phone as AP and SimpleLink as station, if I turn off just internet on phone, connection to broker restores when I turn it on again.
But if I turn off AP on my phone, connection to broker is never restored.
This issue happens only if I use URL instead of IP4.
Why does it happen and how could I fix it?
Regards,
Boris