User Manual
Revision 1.0
27-May-2022
CFR0012
29 of 58
© 2022 Renesas Electronics
UM-WI-058
DA16200 Getting
Started with Azure® IoT
The operation of
opening door
in the Android app is shown in
Figure 36: Open Door in the App
shows the device twin of Azure IoT Hub when the opening door operation is completed
.
Figure 37: Device Twin When Door Is Open
The console log of DA16200 when the opening door operation is completed, is shown below.
[mqttOperationCompleteCallback:2102] MQTT_CLIENT_ON_CONNACK & CONNECTION_ACCEPTED: subscribing topics=0x000d
==> elapsed time: 2 ms, total time: 207 ms
Info: [app_socket_set_recv_timeout:146] : recv timeout(=120) set OK (socket=0)
[SubscribeToMqttProtocol:2441] mqtt_client_subscribe() bypassed ==> elapsed time: 10 ms, total time: 217 ms
[app_dpm_set_rcv_ready:633] DPM rcv ready & suscription completed ==> elapsed time: 0 ms, total time: 217 ms
Info: [deviceMethodCallback:347] : method_name: AppControl, Command payload : 10,
"doorOpen"thods/POST/AppControl/?$rid=3
Info: [deviceMethodCallback:351] :
open comm
Info: [deviceMethodCallback:430] :
Command response : "opened"
Info: [deviceMethodCallback:435] : Report =>
{"temperature":23,"battery":100,"doorStateChange":1,"openMethod":"app","doorState":true,"doorBell":false,"door
OpenMode":0,"OTAupdate":0,"OTAresult":"OTA_UNKNOWN","OTAversion":"none"}