Closed DavidMR91 closed 2 years ago
It just prints the value of the rc
.
I assume you are about the rc
of the connect call: Error::type connect(const MQTTPacket_connectData& connectOptions, ConnectResult& result)
call.
See enum for all possible Error::type
values: MqttClient.h#L200
See the connect implementation to find more details: MqttClient.h#L469
In your case:
WAIT_TIMEOUT = -6,
NETWORK_FAILURE = -5
Hello, when this line:
LOG_PRINTFLN("Connection error: %i", rc);
is rturning: Connection error: %i-5 or Connection error: %i-6
what do these errors mean? What is the meaning of the other numbers it can return?