You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Iam actually testing your project with the MKR NB1500 to connect to Azure-Cloud.
In the most cases the "mqttClient.connectError()" returns the value "3". Error-Code for: "MQTT_SERVER_UNAVAILABLE "
Out 1 of 100 tests to connect the mqttClient works fine. Then the connection to the azure-hub is successfully. But if I start the c-program again, the mqttclint.connect() shows an error again.
It seems like a problem in the mqttClient.connect(broker,8883). The retry doesnt work, because the connection over the SIM-Network is to slow. (presumable)
Can someone help me? I need help...
Sourcecode:
void connectMQTT() {
Serial.print("Attempting to connect to MQTT broker: ");
Serial.print(broker);
Serial.println(" ");
Hi sir,
Iam actually testing your project with the MKR NB1500 to connect to Azure-Cloud.
In the most cases the "mqttClient.connectError()" returns the value "3". Error-Code for: "MQTT_SERVER_UNAVAILABLE "
Out 1 of 100 tests to connect the mqttClient works fine. Then the connection to the azure-hub is successfully. But if I start the c-program again, the mqttclint.connect() shows an error again.
It seems like a problem in the mqttClient.connect(broker,8883). The retry doesnt work, because the connection over the SIM-Network is to slow. (presumable)
Can someone help me? I need help...
Sourcecode:
void connectMQTT() {
Serial.print("Attempting to connect to MQTT broker: ");
Serial.print(broker);
Serial.println(" ");
while (!mqttClient.connect(broker, 8883))
{
// failed, retry
Serial.print(".");
Serial.println(mqttClient.connectError());
delay(500);
}
The text was updated successfully, but these errors were encountered: