Skip to content

Commit c4fa5f4

Browse files
authored
Merge pull request #14 from Azure/ewertons/revertdct
Revert the user agent property name from dct to DeviceClientType
2 parents 73b782a + cb0db73 commit c4fa5f4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/Azure_IoT_Central_ESP32/AzureIoT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ typedef struct azure_iot_config_t_struct
499499
* Where:
500500
* <MQTT-clientid> = <device-id> + '\0'
501501
* <MQTT-username> = <iot-hub-fqdn> + '/' + lengthof(<device-id>) + '/' + '?' + <api-version> +
502-
* "&dct=" + urlenc(<user-agent>) + "&model-id=" + urlenc(<pnp-model-id>) + '\0'
502+
* "&DeviceClientType=" + urlenc(<user-agent>) + "&model-id=" + urlenc(<pnp-model-id>) + '\0'
503503
* <api-version> = "api-version=<YYYY-MM-DD>"
504504
* <MQTT-password>) = "SharedAccessSignature sr=" + <iot-hub-fqdn> + "%2Fdevices%2F" + <device-id> +
505505
* "&sig=" + urlenc(<sha256-string>) + "&se=" + <expiration-time> + '\0'

examples/Azure_IoT_Central_ESP32_AzureIoTKit/AzureIoT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ typedef struct azure_iot_config_t_struct
499499
* Where:
500500
* <MQTT-clientid> = <device-id> + '\0'
501501
* <MQTT-username> = <iot-hub-fqdn> + '/' + lengthof(<device-id>) + '/' + '?' + <api-version> +
502-
* "&dct=" + urlenc(<user-agent>) + "&model-id=" + urlenc(<pnp-model-id>) + '\0'
502+
* "&DeviceClientType=" + urlenc(<user-agent>) + "&model-id=" + urlenc(<pnp-model-id>) + '\0'
503503
* <api-version> = "api-version=<YYYY-MM-DD>"
504504
* <MQTT-password>) = "SharedAccessSignature sr=" + <iot-hub-fqdn> + "%2Fdevices%2F" + <device-id> +
505505
* "&sig=" + urlenc(<sha256-string>) + "&se=" + <expiration-time> + '\0'

examples/Azure_IoT_Central_ESP32_AzureIoTKit/Azure_IoT_Central_ESP32_AzureIoTKit.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ static const char* wifi_ssid = IOT_CONFIG_WIFI_SSID;
8585
static const char* wifi_password = IOT_CONFIG_WIFI_PASSWORD;
8686

8787
// TODO: remove this after updating library with Azure SDK for C version 1.3.0-beta.2 or later.
88-
#define AZURE_SDK_CLIENT_USER_AGENT_WORKAROUND "dct=" AZURE_SDK_CLIENT_USER_AGENT
88+
#define AZURE_SDK_CLIENT_USER_AGENT_WORKAROUND "DeviceClientType=" AZURE_SDK_CLIENT_USER_AGENT
8989

9090
/* --- Function Declarations --- */
9191
static void sync_device_clock_with_ntp_server();

0 commit comments

Comments
 (0)