Giter VIP home page Giter VIP logo

Comments (6)

darobs avatar darobs commented on September 25, 2024

Thanks for the question, @tedvanderveen. We provided a sample for the HTTP transport because multiple IoTHub devices may use a shared HTTP transport (i.e. we only establish one TLS connection). AMQP and MQTT may also be used, but each device instance will create its own transport.

As shared transports become available for the other protocols, we will update the samples to include them.

from iot-edge-v1.

tedvanderveen avatar tedvanderveen commented on September 25, 2024

Thanks @darobs. Does it use Secure WebSockets (over TLS port 443) to ensure cloud-to-device communications through firewalls etc and bi-directional support?

from iot-edge-v1.

damonbarry avatar damonbarry commented on September 25, 2024

@tedvanderveen Yes, I believe the IoT Hub messaging SDK supports AMQP and MQTT over websockets, although as mentioned we don't have sample gateway modules yet for these protocols.

from iot-edge-v1.

darobs avatar darobs commented on September 25, 2024

Expanding on Damon's answer: Yes, the IoT-Device-SDK can use TLS for the WebSockets communication, and it is bi-directional.
Here is the code that shows that:
https://github.com/Azure/azure-iot-sdks/blob/develop/c/iothub_client/src/iothubtransportamqp_websockets.c, line 14
That “true” on the configuration is to set WSIO_CONFIG->use_ssl, which enables WebSockets over SSL down on uamqp layer.

The documentation we have about support is this:
https://azure.microsoft.com/en-us/documentation/articles/iot-hub-tested-configurations/
however it doesn’t mention the fact that we use SSL for WebSockets connections.

Other related docs:
https://github.com/Azure/azure-iot-sdks/blob/master/doc/get_started/amqp-c-websockets-run-sample.md

What we don't currently have is a gateway module for that protocol.

from iot-edge-v1.

darobs avatar darobs commented on September 25, 2024

@tedvanderveen If you check out the latest master release, the ability to specify AMQP and MQTT as the protocol has been added to the iothub module. We haven't added the support for a shared AMQP transport, as we are still waiting on the SDK support for this.

from iot-edge-v1.

chipalost avatar chipalost commented on September 25, 2024

I'm closing this issue as I believe it's been resolved.

from iot-edge-v1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.