最近我们公司买了P-NUCLEO-CLD1开发套件,并且下载了FP-CLD-AZURE1软件包。之后我们运行FP-CLD-AZURE1软件包里的范例却发现总是无法运行下去。请贵方帮我们解决这个问题.(未对源码做任何更改,只是配置了wifi参数和Azure连接字符串)。
日志如下:
UART Initialized
I2C Initialized
STMicroelectronics Azure_DM:
Version 3.2.2
STM32F401RE-Nucleo board
Azure SDK Version 1.1.16
IKS01A2 board
Ok Accelero Sensor
Ok Gyroscope Sensor
Ok Magneto Sensor
Ok Humidity Sensor
Ok Temperature Sensor1
Ok Temperature Sensor2
Ok Pressure Sensor
Enabled Accelero Sensor
Enabled Gyroscope Sensor
Enabled Magneto Sensor
Enabled Humidity Sensor
Enabled Temperature Sensor1
Enabled Temperature Sensor2
Enabled Pressure Sensor
(HAL 1.7.1_0)
Compiled Jan 19 2018 14:36:06 (KEIL)
Init Application's Timers
Init Random Number Generator
Enabled Free Fall
X-NUCLEO-NFC01A1 is present
Init WIFI's Timers
Init WIFI's UART1
--------------------------
| WIFI Credential |
--------------------------
Meta Data Manager read from Flash
Meta Data Manager version=0.8.0
Generic Meta Data found:
WIFI Size=81 [bytes]
AZURE Size=256 [bytes]
Saved SSID : hldjsb
Saved PassWd : jsb123456
Saved EncMode: WPA2/WPA2-Personal
Wait 3 seconds for allowing User Button Control for changing it
--------------------------
| Connection String |
--------------------------
Saved Connection String :
HostName=AzureTest1.azure-devices.cn;DeviceId=1001;SharedAccessK
ey=x+Ekp67UrDAKM6YPnIGXoGoLd0P7BpTZCFmIth1G578=
Wait 3 seconds for allowing User Button Control for changing it
wifi started and ready...
WIFI module Configured
WiFi MAC Address is: 00:80:E1:B9:78:BE
WiFi connected to AccessPoint
Init Real Time Clock 05-07-2018 06:19:50
Platform Init Done
Serializer Initialized
iotHubClientHandle Created
iotHubClientSetOption logtrace Ok
Model Instance Created
IoTHubClient_LL_SetMessageCallback...successful.
IoTHubClient_LL_SetDeviceMethodCallback...successful.
IoTHubClient_LL_SetOption(certificates)...successful.
IoTHubClient_LL_SetDeviceTwinCallback...successful.
WIFI closed =0 |