Azure / azure-iot-sdk-node

A Node.js SDK for connecting devices to Microsoft Azure IoT services
https://docs.microsoft.com/en-us/azure/iot-hub/
Other
261 stars 227 forks source link

[Technical Question] is azure-iot-device-http https or http? What protocol should I use? #1015

Closed cell2749 closed 3 years ago

cell2749 commented 3 years ago

Sorry for this might be two questions in one.

(Topic)

  1. If it supports both protocols, how to make sure I am using https? I am also using Message and Client from aws-iot-device

  2. Scenario: Simple publish of a message(s). (Forwarding messages from device(s) in cloud from one service to another service). There is no need to forward messages from another service to device(s).

Is amqp more suitable for the above scenario?

anthonyvercolano commented 3 years ago

Among the protocols Azure IoT supports https. By chosing the http protocol you are getting https.

As to the rest I am not clear about what you are asking.

cell2749 commented 3 years ago

Among the protocols Azure IoT supports https. By chosing the http protocol you are getting https.

As to the rest I am not clear about what you are asking.

Yes, the main question here is whether the npm module "azure-iot-device-http" is actually https? I had a brief look at the code and it seems that in some scenarios the connection might be http and thus was wondering if that is the case with the mentioned module or not?

YoDaMa commented 3 years ago

for all scenarios the connection would be using http over TLS. If there's ever a scenario you could identify where the connection is not over TLS, that would be a bug we need to fix.

YoDaMa commented 3 years ago

closing because this q seems resolved.