Comments (6)
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.
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.
@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.
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.
@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.
I'm closing this issue as I believe it's been resolved.
from iot-edge-v1.
Related Issues (20)
- iotedge deployment issues with ML module HOT 4
- Cannot Send or receive messages after deploying IoT Edge HOT 1
- EdgeHub module was not able to start HOT 2
- IOT-Edge Hub back-off state HOT 2
- [V1] Gateway not starting after adding 511+ modules HOT 2
- edgeHub not getting started : Container Not Found HOT 3
- Failed to enable prov client and custom HSM module on IoT Edge SDK HOT 2
- running simulated_device_cloud_upload_sample gets run-time errors
- IoT Edge docker failure on Windows IoT Core Build Version- 10.0.17763.17 HOT 1
- It seems that Desired Properties doesn't work HOT 3
- SimulatedTemperatureSensor fails while following QuickStart guide HOT 1
- azure-c-shared-utility changed constbuffer from CLONE to INC_REF/DEC_REF HOT 1
- Feather m0 mqtt_client timed out waiting for CONNACK HOT 1
- When the edge module is configured to host mode, edgehub cannot be used for communication
- java custom module occur faild on raspberry pi
- Azure marketplace source link not work for Simulated Temperature Sensor
- edge c-sample module will appear fail
- Invalid or corrupt jarfile gateway.jar
- Azure iot edge not running on raspberry pi when MQTT dependency is added in pom.xml
- Azure IoT Module with iotedgehubdev throws an error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iot-edge-v1.