IoT DevKit MXChip AZ3166: ERROR: base64_utility.c (ln 201): Invalid length Base64 string

IoT DevKit MXChip AZ3166: ERROR: base64_utility.c (ln 201): Invalid length Base64 string

你解决了这个问题吗?

当我的 IoTDevKit 连接到 wifi 时。它会不停地重复一条消息(见下文)。

我按照逐步的 Micros 程序休假 "GetStarted - Connect IoT DevKit AZ3166 to Azure IoT Hub"

我从这个命令中获取了 ConnectionString:

az iot hub device-identity show-connection-string --hub-name YourIoTHubName --device-id MyNodeDevice --output table

我尝试使用位于 Iot Device Explorer 中的连接...结果相同。

我使用了这种连接字符串格式:

HostName={YourIoTHubName}.azure-devices.net;DeviceId=MyNodeDevice;SharedAccessKey={YourSharedAccessKey}

这是错误:

2019-08-28 13:22:04 ERROR: base64_utility.c (ln 201): Invalid length Base64 string! 2019-08-28 13:22:04 ERROR: sastoken.c (ln 217): Unable to decode the key for generating the SAS. 2019-08-28 13:22:04 ERROR: iothub_client_authorization.c (ln 460): Failed creating sas_token 2019-08-28 13:22:04 ERROR: iothubtransport_mqtt_common.c (ln 2169): failure getting sas token from IoTHubClient_Auth_Get_SasToken.

我的 IoTDevKit 的屏幕仍然带有 IP 地址和 运行... (在那下面,“ > 物联网中心”)

你有解决办法吗? 我的连接字符串仅包含 112 个字符(带有标签 "HostName=") 而且...在我尝试的第一天一切正常。第二天...出现这个问题

版本

DevKitSDK 版本:1.6.2

微版本:31620002.049

mbed-os 版本: 5.4.3

mbed TLS 版本: 2.15.0

WIFI 版本:wl0: 2014 年 9 月 10 日 11:28:46 版本 5.90.230.10

MXChipScreen Connected but not working

Error from Putty connected to the MxChip

对于可能 运行 遇到此问题的任何其他人。我使用本指南 (https://microsoft.github.io/azure-iot-developer-kit/docs/use-configuration-mode/) 在当前固件上解决了这个问题,首先让 DevKit 进入配置模式,然后我在 PuTTY 中使用 "set_az_iothub" 命令输入了连接字符串。