User Manual
Revision 1.0
27-May-2022
CFR0012
31 of 58
© 2022 Renesas Electronics
UM-WI-058
DA16200 Getting
Started with Azure® IoT
Figure 40
shows the device twin of Azure IoT Hub when the door closing operation is completed
.
Figure 40: Device Twin When Door Is Closed
The console log of DA16200 when the door closing operation is completed, is shown as below.
[mqttOperationCompleteCallback:2102] MQTT_CLIENT_ON_CONNACK & CONNECTION_ACCEPTED: subscribing topics=0x000d
==> elapsed time: 0 ms, total time: 204 ms
Info: [app_socket_set_recv_timeout:146] : recv timeout(=120) set OK (socket=0)
[SubscribeToMqttProtocol:2441] mqtt_client_subscribe() bypassed ==> elapsed time: 13 ms, total time: 217 ms
[app_dpm_set_rcv_ready:633] DPM rcv ready & suscription completed ==> elapsed time: 1 ms, total time: 218 ms
Info: [deviceMethodCallback:347] : method_name: AppControl, Command payload : 11, "doorClose"hods/
Info: [deviceMethodCallback:367] :
close comm
Info: [deviceMethodCallback:430] :
Command response : "closed"
Info: [deviceMethodCallback:435] : Report =>
{"temperature":23,"battery":100,"doorStateChange":1,"openMethod":"app","doorState":false,"doorBell":false,"doo
rOpenMode":0,"OTAupdate":0,"OTAresult":"OTA_UNKNOWN","OTAversion":"none"}
Info: [publishDeviceTwinGetMsg:1136] : publish reported data OK
Info: [removeExpiredTwinRequests:1260] : ack_waiting_queue timeout & removed
[app_dpm_set_recv_timeout_flag:556] DPM_RCV_OK_SLEEP set ==> elapsed time: 1141 ms, total time: 1359 ms
Device Twin reported properties update completed with result: 204