EasyManua.ls Logo

ST STM32L4 - Page 152

ST STM32L4
213 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Customize Usage
of the Sensor Board
The message transmitted to your IoT Hub is composed inside function SendSNSData()
in file AzureClient_mqtt_DM_TM.c (Azure_Sns_DM/User)
Read raw data from sensors to Azure1 data
structure, using driver APIs
(BSP_TEMPERATURE_Get_Temp,
BSP_TEMPERATURE_Get_Hum, etc.)
Convert sensors data structure into a JSON string
Create message handler
Send the
message
152