ArduinoCloudProviderExamples icon indicating copy to clipboard operation
ArduinoCloudProviderExamples copied to clipboard

IoT hub: API version should be in URL querystring format (missing a '?')

Open MrWFoulkes opened this issue 5 years ago • 0 comments

In the IoT hub examples, the username is set to "<broker>/<device id>/api-version=2018-06-30":

https://github.com/arduino/ArduinoCloudProviderExamples/blob/4ce13b8f37d3059aca7dd791b2ee9ba496921394/examples/Azure%20IoT%20Hub/Azure_IoT_Hub_GSM/Azure_IoT_Hub_GSM.ino#L77

https://github.com/arduino/ArduinoCloudProviderExamples/blob/4ce13b8f37d3059aca7dd791b2ee9ba496921394/examples/Azure%20IoT%20Hub/Azure_IoT_Hub_NB/Azure_IoT_Hub_NB.ino#L79

https://github.com/arduino/ArduinoCloudProviderExamples/blob/4ce13b8f37d3059aca7dd791b2ee9ba496921394/examples/Azure%20IoT%20Hub/Azure_IoT_Hub_WiFi/Azure_IoT_Hub_WiFi.ino#L69

It should be "<broker>/<device id>/?api-version=2018-06-30".

According to IoT hub docs here: https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support

MrWFoulkes avatar Aug 06 '20 14:08 MrWFoulkes