Connect Sensortile to Microsoft Azure

Alex Carluccio 1 Reputation point
2021-07-28T17:09:18.857+00:00

Hi guys, i would ask if someone has a tutorial that shows how to connect an IoT device using MQTT to Azure IoT. I have already created an IoT apllication on Microsotf Azure, i have Device Id but i don't understand what i have to put into the field "HostName" and "SAS".

I found this Mqtt string template to use "Hostname=;DeviceId=;SharedAccessKey=;"
Thanks for all who will help me.

Regards, Alex.

Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
599 questions
Azure IoT Central
Azure IoT Central
An Azure hosted internet of things (IoT) application platform.
377 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,275 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 35,976 Reputation points Moderator
    2021-07-29T10:45:07.327+00:00

    @Alex Carluccio Welcome to Microsoft Q&A!

    If you are connecting to IoTHub, HostName is your IoTHub name and SAS is Shared Access Signature which is generated by you.

    There are two ways to obtain DeviceConnect permissions with IoT Hub with security tokens: use a symmetric device key from the identity registry, or use a shared access key.

    Please go through Control access to IoT Hub using Shared Access Signatures and security tokens for more details.

    A device can use the MQTT protocol to connect to an IoT hub using any of the following options.

    I would suggest you take a look at the documentation Communicate with your IoT hub using the MQTT protocol

    Regarding your query on Connect Sensortile to Microsoft Azure please provide more details if you are trying to connect this device to IoT Central?

    Hope this helps. Do let us know if you have any further queries.

    If the response is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.