Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit 85cc018

Browse files
committed
add SAS device key generator
1 parent 6f0ac0d commit 85cc018

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/azure_iot_mqtt/azure_iot_mqtt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define AZURE_IOT_MQTT_USERNAME_SIZE 256
2020
#define AZURE_IOT_MQTT_PASSWORD_SIZE 256
2121
#define AZURE_IOT_MQTT_TOPIC_NAME_LENGTH 256
22-
#define AZURE_IOT_MQTT_MESSAGE_LENGTH 512
22+
#define AZURE_IOT_MQTT_MESSAGE_LENGTH 1024
2323
#define AZURE_IOT_MQTT_DIRECT_COMMAND_RID_SIZE 6
2424

2525
#define AZURE_IOT_MQTT_CLIENT_STACK_SIZE 4096

tools/generate-device-key.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ $hmacsha.key = [Convert]::FromBase64String($key)
1212
$deviceKey = $hmacsha.ComputeHash([Text.Encoding]::ASCII.GetBytes($id))
1313
$deviceKey = [Convert]::ToBase64String($deviceKey)
1414

15-
Write-Output $deviceKey
15+
Write-Output "Device key = $deviceKey"

0 commit comments

Comments
 (0)