# Problem With Sending Data to Azure IoT Central

**URL:** <https://forum.arduino.cc/t/problem-with-sending-data-to-azure-iot-central/672373>\
**Category:** MKR WiFi 1010\
**Created:** [August 29, 2020, 10:40pm UTC](https://forum.arduino.cc/t/problem-with-sending-data-to-azure-iot-central/672373 "2020-08-29T22:40:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fallenzone](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/fallenzone/32/434554_2.png) [@Fallenzone](https://forum.arduino.cc/u/Fallenzone)\
**Post date:** [August 29, 2020, 10:40pm UTC](https://forum.arduino.cc/t/problem-with-sending-data-to-azure-iot-central/672373/1 "2020-08-29T22:40:10Z")

</div>

Hi everyone I'm new here,

just got my 1010 around a week and sent data to Arduino IoT cloud without any problem :D,

since I need more complicated dashboard component and function, I decided to send data to Azure IoT Central.

So first.

I found and followed [this repository](https://github.com/firedog1024/mkr1000-iotc) and [this article](https://blog.cloudnation.nl/hot-topics/how-to-connect-an-arduino-mkr-wifi-1010-device-with-azure-iot-device-central) step by step.

the problem is that I've read all the issue in the repository and tried so many times still can't send test data to Azure IoT Central.(also open a issue already.)

the message in my com port monitor is like :

```cpp
16:48:04.885 -> Getting the time from time service: 
16:48:04.920 -> Current time: 29. August 2020 - Saturday 07:48:05
16:48:04.955 -> Getting IoT Hub host from Azure IoT DPS
16:48:15.020 -> Starting IoT Hub connection
16:48:25.205 -> ---> mqtt failed, rc=-2
16:48:37.233 -> ---> mqtt failed, rc=-2
16:48:49.262 -> ---> mqtt failed, rc=-2
16:49:01.284 -> ---> mqtt failed, rc=-2

```

Does anyone tried to sent data to Azure IoT Central before and got same issue or suggestion ?

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 7, 2021, 11:54am UTC](https://forum.arduino.cc/t/problem-with-sending-data-to-azure-iot-central/672373/2 "2021-05-07T11:54:20Z")

</div>

Closed on May 7, 2021, 11:54am UTC


