Skip to content

Commit 4a1ebc6

Browse files
update user agent to url encode / (#24)
1 parent 1dad54e commit 4a1ebc6

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

examples/Azure_IoT_Central_ESP32/AzureIoT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ typedef struct azure_iot_config_t_struct
528528
* <pnp-model-id> = "dtmi:azureiot:devkit:freertos:Esp32AzureIotKit;1"
529529
* <api-version> = "api-version=2020-09-30"
530530
* <expiration-time> = "1641251566"
531-
* <user-agent> = "c/1.1.0-beta.1(FreeRTOS)"
531+
* <user-agent> = "c%2F1.1.0-beta.1(FreeRTOS)"
532532
*
533533
* sizeof(data_buffer) >= 592 bytes (59 bytes + 2 bytes + 3 bytes + 190 bytes + 338 bytes, respectively)
534534
*/

examples/Azure_IoT_Central_ESP32_AzureIoTKit/AzureIoT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ typedef struct azure_iot_config_t_struct
528528
* <pnp-model-id> = "dtmi:azureiot:devkit:freertos:Esp32AzureIotKit;1"
529529
* <api-version> = "api-version=2020-09-30"
530530
* <expiration-time> = "1641251566"
531-
* <user-agent> = "c/1.1.0-beta.1(FreeRTOS)"
531+
* <user-agent> = "c%2F1.1.0-beta.1(FreeRTOS)"
532532
*
533533
* sizeof(data_buffer) >= 592 bytes (59 bytes + 2 bytes + 3 bytes + 190 bytes + 338 bytes, respectively)
534534
*/

examples/Azure_IoT_Hub_ESP32/Azure_IoT_Hub_ESP32.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
// When developing for your own Arduino-based platform,
4444
// please follow the format '(ard;<platform>)'.
45-
#define AZURE_SDK_CLIENT_USER_AGENT "c/" AZ_SDK_VERSION_STRING "(ard;esp32)"
45+
#define AZURE_SDK_CLIENT_USER_AGENT "c%2F" AZ_SDK_VERSION_STRING "(ard;esp32)"
4646

4747
// Utility macros and defines
4848
#define sizeofarray(a) (sizeof(a) / sizeof(a[0]))

examples/Azure_IoT_Hub_ESP8266/Azure_IoT_Hub_ESP8266.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
// When developing for your own Arduino-based platform,
4848
// please follow the format '(ard;<platform>)'.
49-
#define AZURE_SDK_CLIENT_USER_AGENT "c/" AZ_SDK_VERSION_STRING "(ard;esp8266)"
49+
#define AZURE_SDK_CLIENT_USER_AGENT "c%2F" AZ_SDK_VERSION_STRING "(ard;esp8266)"
5050

5151
// Utility macros and defines
5252
#define LED_PIN 2

examples/Azure_IoT_Hub_RealtekAmebaD/Azure_IoT_Hub_RealtekAmebaD.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
// When developing for your own Arduino-based platform,
2626
// please follow the format '(ard;<platform>)'.
27-
#define AZURE_SDK_CLIENT_USER_AGENT "c/" AZ_SDK_VERSION_STRING "(ard;amebaD)"
27+
#define AZURE_SDK_CLIENT_USER_AGENT "c%2F" AZ_SDK_VERSION_STRING "(ard;amebaD)"
2828

2929
// Utility macros and defines
3030
// Status LED: will remain high on error and pulled high for a short time for each successful send.

0 commit comments

Comments
 (0)