arduino / arduino/ArduinoCloudProviderExamples

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

Open Beginner friendly
#13 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C
Stars
82
Forks
25
PR merge metrics
No merged PRs in 30d

Description

In the IoT hub examples, the username is set to "\/\/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 "\/\/?api-version=2018-06-30".

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Update the username format in Azure_IoT_Hub_GSM.ino, Azure_IoT_Hub_NB.ino, and Azure_IoT_Hub_WiFi.ino at the referenced lines. Start by comparing those values with the linked Azure IoT Hub MQTT documentation; done means each example uses the querystring form with '/?api-version=2018-06-30'.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.