@@ -43,7 +43,7 @@ The following table contains links to code samples for each supported language a
43
43
| Language | MQTT protocol parameter | MQTT over WebSockets protocol parameter
44
44
| --- | --- | --- |
45
45
| [ Node.js] ( https://github.com/Azure/azure-iot-sdk-node/blob/main/device/samples/javascript/simple_sample_device.js ) | azure-iot-device-mqtt.Mqtt | azure-iot-device-mqtt.MqttWs |
46
- | [ Java] ( https://github.com/Azure/azure-iot-sdk-java/blob/main/device/iot-device-samples/send-receive-sample/src/main/java/samples/com/microsoft/azure/sdk/iot/SendReceive.java ) | [ IotHubClientProtocol] ( /java/api/com.microsoft.azure.sdk.iot.device.iothubclientprotocol ) .MQTT | IotHubClientProtocol.MQTT_WS |
46
+ | [ Java] ( https://github.com/Azure/azure-iot-sdk-java/blob/main/iothub/ device/iot-device-samples/send-receive-sample/src/main/java/samples/com/microsoft/azure/sdk/iot/SendReceive.java ) | [ IotHubClientProtocol] ( /java/api/com.microsoft.azure.sdk.iot.device.iothubclientprotocol ) .MQTT | IotHubClientProtocol.MQTT_WS |
47
47
| [ C] ( https://github.com/Azure/azure-iot-sdk-c/tree/master/iothub_client/samples/iothub_client_sample_mqtt_dm ) | [ MQTT_Protocol] ( https://github.com/Azure/azure-iot-sdk-c/blob/main/iothub_client/inc/iothubtransportmqtt.h ) | [ MQTT_WebSocket_Protocol] ( https://github.com/Azure/azure-iot-sdk-c/blob/main/iothub_client/inc/iothubtransportmqtt_websockets.h ) |
48
48
| [ C#] ( https://github.com/Azure/azure-iot-sdk-csharp/tree/main/iothub/device/samples ) | [ TransportType] ( /dotnet/api/microsoft.azure.devices.client.transporttype ) .Mqtt | TransportType.Mqtt falls back to MQTT over WebSockets if MQTT fails. To specify MQTT over WebSockets only, use TransportType.Mqtt_WebSocket_Only |
49
49
| [ Python] ( https://github.com/Azure/azure-iot-sdk-python/tree/main/samples ) | Supports MQTT by default | Add ` websockets=True ` in the call to create the client |
@@ -70,7 +70,7 @@ In order to ensure a client/IoT Hub connection stays alive, both the service and
70
70
| Language | Default keep-alive interval | Configurable |
71
71
| ---------| ---------| ---------|
72
72
| Node.js | 180 seconds | No |
73
- | Java | 230 seconds | [ Yes] ( https://github.com/Azure/azure-iot-sdk-java/blob/main/device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/ClientOptions.java#L64 ) |
73
+ | Java | 230 seconds | [ Yes] ( https://github.com/Azure/azure-iot-sdk-java/blob/main/iothub/ device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/ClientOptions.java#L64 ) |
74
74
| C | 240 seconds | [ Yes] ( https://github.com/Azure/azure-iot-sdk-c/blob/master/doc/Iothub_sdk_options.md#mqtt-transport ) |
75
75
| C# | 300 seconds* | [ Yes] ( /dotnet/api/microsoft.azure.devices.client.transport.mqtt.mqtttransportsettings.keepaliveinseconds ) |
76
76
| Python | 60 seconds | [ Yes] ( https://github.com/Azure/azure-iot-sdk-python/blob/main/azure-iot-device/azure/iot/device/iothub/abstract_clients.py#L343 ) |
@@ -452,4 +452,4 @@ To learn more about planning your IoT Hub deployment, see:
452
452
To further explore the capabilities of IoT Hub, see:
453
453
454
454
* [ Azure IoT Hub concepts overview] ( iot-hub-devguide.md )
455
- * [ Quickstart: Deploy your first IoT Edge module to a virtual Linux device] ( ../iot-edge/quickstart-linux.md )
455
+ * [ Quickstart: Deploy your first IoT Edge module to a virtual Linux device] ( ../iot-edge/quickstart-linux.md )
0 commit comments