firedog1024 / mkr1000-iotc

Connecting an Arduino MKR1000 to Azure IoT Central
MIT License
32 stars 14 forks source link

mqtt failed, rc=-1 #8

Open yehiaraslan85 opened 4 years ago

yehiaraslan85 commented 4 years ago

Hello,

The code was working fine on mkr 1010 then suddenly it stopped giving the below error.

23:58:08.153 -> Getting the time from time service: 23:58:08.560 -> Current time: 11. January 2020 - Saturday 19:58:07 23:58:08.594 -> Getting IoT Hub host from Azure IoT DPS 23:58:30.677 -> Starting IoT Hub connection 23:58:34.782 -> ---> mqtt failed, rc=-1 23:58:40.812 -> ---> mqtt failed, rc=-1 23:58:46.970 -> ---> mqtt failed, rc=-1 23:58:53.094 -> ---> mqtt failed, rc=-1 23:58:59.134 -> ---> mqtt failed, rc=-1 23:59:05.212 -> ---> mqtt failed, rc=-1 23:59:11.243 -> ---> mqtt failed, rc=-1 23:59:17.278 -> ---> mqtt failed, rc=-1 23:59:23.302 -> ---> mqtt failed, rc=-1 23:59:38.578 -> ---> mqtt failed, rc=-1

The only change i made was on the IoT Hub Central side where i created an Admin API key.

Any help ?

Thanks, Yehia