This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Azure IoT Hub - MQTT
#17
Duvan2127 has contacted Microsoft support in this matter. Here is a reply from MS. Maybe Duvan2127  can provide further comments or tests done for this?

Step 1 : Get Connection string from the tool. It will give to Hub name
Example

C:\Users\anhashia\AppData\Roaming\npm\node_modules\dps-keygen\bin\windows>dps_cstr 0ne000475B9 mydevice ********************

...

Registration Information received from service: iotc-3d8d214e-281d-454a-9c7d-259fd8bb49ed.azure-devices.net!
Connection String:
HostName=iotc-3d8d214e-281d-454a-9c7d-259fd8bb49ed.azure-devices.net;DeviceId=mydevice;SharedAccessKey=**************

Once you have connection string, you can put in IoT SDK and you are good to go,
https://docs.microsoft.com/en-us/azure/i...-telemetry


Step 2:  Fill below paraments from Step 1  Example.


   broker: iotc-3d8d214e-281d-454a-9c7d-259fd8bb49ed.azure-devices.net
   port : 8883
   device_id: mydevice
   username:  iotc-3d8d214e-281d-454a-9c7d-259fd8bb49ed.azure-devices.net/mydevice/api-version=2016-11-14
   password:  This you will need to generate https://docs.microsoft.com/en-us/azure/i...ity-tokens. It has code snippet.


[Image: ms_iotcentral_reply.png]

Step #5, you need to write code to generate SAS token.
Reply


Messages In This Thread
Azure IoT Hub - MQTT - by FatMax - 17.12.2018, 23:00
RE: Azure IoT Hub - MQTT - by FatMax - 21.12.2018, 07:52
RE: Azure IoT Hub - MQTT - by admin - 21.12.2018, 08:26
RE: Azure IoT Hub - MQTT - by FatMax - 10.01.2019, 08:26
RE: Azure IoT Hub - MQTT - by admin - 10.01.2019, 09:55
RE: Azure IoT Hub - MQTT - by Sandstrand - 21.05.2019, 09:15
RE: Azure IoT Hub - MQTT - by FatMax - 03.07.2019, 11:47
RE: Azure IoT Hub - MQTT - by FatMax - 10.01.2019, 11:01
RE: Azure IoT Hub - MQTT - by FatMax - 11.01.2019, 18:26
RE: Azure IoT Hub - MQTT - by Duvan2127 - 04.02.2019, 14:10
RE: Azure IoT Hub - MQTT - by admin - 04.02.2019, 14:50
RE: Azure IoT Hub - MQTT - by Duvan2127 - 04.02.2019, 16:00
RE: Azure IoT Hub - MQTT - by admin - 05.02.2019, 07:38
RE: Azure IoT Hub - MQTT - by Duvan2127 - 05.02.2019, 14:35
RE: Azure IoT Hub - MQTT - by admin - 07.02.2019, 09:04
RE: Azure IoT Hub - MQTT - by Duvan2127 - 15.02.2019, 22:20
RE: Azure IoT Hub - MQTT - by admin - 16.02.2019, 07:21
RE: Azure IoT Hub - MQTT - by edgars - 26.02.2019, 09:18
RE: Azure IoT Hub - MQTT - by FatMax - 01.05.2019, 21:26
RE: Azure IoT Hub - MQTT - by admin - 02.05.2019, 06:46
RE: Azure IoT Hub - MQTT - by FatMax - 02.05.2019, 07:22
RE: Azure IoT Hub - MQTT - by admin - 21.05.2019, 09:27
RE: Azure IoT Hub - MQTT - by admin - 03.07.2019, 12:33
RE: Azure IoT Hub - MQTT - by FatMax - 03.07.2019, 13:06
RE: Azure IoT Hub - MQTT - by admin - 03.07.2019, 13:18
RE: Azure IoT Hub - MQTT - by FatMax - 03.07.2019, 17:48
RE: Azure IoT Hub - MQTT - by admin - 04.07.2019, 06:04
RE: Azure IoT Hub - MQTT - by admin - 04.07.2019, 15:17

Forum Jump: