question

MnsAndersson-8292 avatar image
0 Votes"
MnsAndersson-8292 asked MnsAndersson-8292 commented

IoT Hub and DPS api versions

Hi,

We're building products connecting to Azure Device Provisioning Service and IoT Hub using MQTT protocol. We are rolling our own implementation and not utilizing the SDKs as they are not compatible with our application.

We are wondering if there's any documentation available on the api version numbers? Which ones are supported, what the difference is etc.

All we've been able to find is the following

IoT Hub

Docs page specifying 2018-06-30 but not mentioning anything else about the parameter
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support#using-the-mqtt-protocol-directly-as-a-device

SDK code which uses 2020-09-30
https://github.com/Azure/azure-iot-sdk-c/blob/32942abb994f6855edc2a4dee8afd80735df4151/iothub_client/inc/internal/iothub_internal_consts.h#L12

DPS

Docs page specifying 2019-03-31 but not mentioning anything else about the parameter
https://docs.microsoft.com/en-us/azure/iot-dps/iot-dps-mqtt-support#using-the-mqtt-protocol-directly-as-a-device

SDK code which uses 2019-03-31
https://github.com/Azure/azure-iot-sdk-c/blob/main/provisioning_client/inc/azure_prov_client/prov_client_const.h#L18

Best regards
Måns

azure-iot-hubazure-iot-dps
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@MnsAndersson-8292 Welcome to Microsoft Q&A forum!
You have mentioned, "We are rolling our own implementation and not utilizing the SDKs as they are not compatible with our application.", Could you please share more details regarding this application? Do you have any specific requirement regarding the versions? Did you try with the api-version "2019-03-31" and not working as expected?

0 Votes 0 ·

@MnsAndersson-8292 Did you get a chance to see my response? Do let us know more details to help you accordingly.
I haven't found the documentation on the supported api version numbers. If you are blocked and looking for any specific details, do let us know

0 Votes 0 ·
MnsAndersson-8292 avatar image MnsAndersson-8292 AshokPeddakotla-MSFT ·

@AshokPeddakotla-MSFT We are currently using 2018-04-01 and don't have any issues with that. However we'd like to be up-to-date with recommendations from Microsoft so as to not start getting issues at a later date when/if Microsoft starts to obsolete some API versions.

We are still on the lookout for the official documentation on these versions.

0 Votes 0 ·

1 Answer

SatishBoddu-MSFT avatar image
0 Votes"
SatishBoddu-MSFT answered

Hello @MnsAndersson-8292 Thanks for your feedback, we will make sure the question on the API version is addressed as soon as possible on the documentation side also

For the Username field, It's strongly recommended to include api-version. I hope this helps with your initial query!

180426-image.png

I have tested quickly with MQTTBox client, with both the versions on IoTHub: 2020-09-30, 2018-06-30, you should be good with either of them. Please let us know if it fails on your side and we can log a product issue.

180390-image.png

180482-image.png

Monitoring on Azure IoTHub Side:

180416-image.png


Please comment in the below section for further help in this regard, Happy to help you!




image.png (65.6 KiB)
image.png (49.7 KiB)
image.png (40.2 KiB)
image.png (12.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.