Arduino MKR WIFI 1010 to Azure IoT Hub - MQTT_NOT_AUTHORIZED

Murat 101 Reputation points
2021-08-19T01:55:28.76+00:00

I have been working on this project with my Arduino MKR 1010 WiFi

Following the guidelines below
https://github.com/microsoft/IoT-For-Beginners/blob/main/2-farm/lessons/4-migrate-your-plant-to-the-cloud/wio-terminal-connect-hub.md

I updated all the header to use the right wifi library.

Below line added where appropriate

elif ARDUINO_SAMD_MKRWIFI1010

include <WiFiNINA.h>

But nevertheless, so far I cannot connect to IoT Hub. I cannot get it connected to it gave me error #5 which is I assume #define MQTT_NOT_AUTHORIZED 5.

I don't know what I am doing wrong?.. Is it due to the hardware? Any idea? Or SSL Client

Any help would be appreciated.

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,112 questions
{count} votes

Accepted answer
  1. Murat 101 Reputation points
    2021-08-25T16:41:57.473+00:00

    I think I needed to do a lot of customization in the library, so I gave up trying for MKR WiFi 100 but it works for Seeed's WIO Terminal
    Thank you


1 additional answer

Sort by: Most helpful
  1. Murat 101 Reputation points
    2021-11-03T03:14:52.733+00:00

    I just wanted to note here

    This is fantastic - here is the solution to my problem

    Connecting MKR WIFI 1010 to Microsoft Azure IoT Hub with Symmetric key Device option

    https://paul-bruffett.medium.com/iot-azure-pipeline-9725ac2b6a00

    1 person found this answer helpful.