[Azure_IoT_Central_ESP32] Failed decoding SAS key #2352
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-triage
This is a new issue that needs to be triaged to the appropriate team.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
"Failed decoding SAS key" occurs when trying individual enrollments of SAS with sample code Azure_IoT_Central_ESP32.
To Reproduce
openssl rand -base64 64
command.Expected behavior
The SAS Key generation command
openssl rand -base64 64
uses what is written in the Azure IoT Central document.I am generating a 64 byte key, but it seems that Azure_IoT_Central_ESP32 only supports up to 32 bytes.
I think you should increase ECODED_SAS_KEY_BUFFER_SIZE in the sample code to 64 or change the Azure IoT Central documentation.
Screenshots
Generate SAS key:
Log:
The text was updated successfully, but these errors were encountered: