UM-WI-038
DA16x00 Getting Started with AT-Command for
AWS-IoT
User Manual
Revision 1.1
13-Jan-2022
CFR0012
34 of 39
© 2022 Renesas Electronics
A.3.4
Configuration Data as Topics
Table 8: Configuration Data from MCU to DA16x00
Head
Main
Sub
Parameters
AT+AWS=
CFG
[number] [name] [value-type]
[MQTT-type]
●
Number:
number and count to distinguish saved topic
It should increase 1 whenever setting new topic
Max value is 0 (total is supported to 10 topics)
●
Name:
String for topic
●
Value-type
Integer type: 0
String type: 1
Float type: 2
●
MQTT-type
Publish: 0, It will use prompt command to send from
MCU to phone as like door state(open/close)
Shadow: 1, It will use a value to send from MCU to
just cloud as like temporary. When phone connect to
cloud, Phone will get the value
Subscribe: 2, It will use prompt command to send
from phone to MCU as like door open command
Ex) AT+AWS=CFG 0 door_status 0 0
AT+AWS=CFG 1 battey 2 1
AT+AWS=CFG 2 door_open 0 2
A.3.5
Command
– MCU to DA16x00
Table 9: Command of MCU to DA16x00
Head
Main
Sub
Description
AT+AWS=
CMD
FACTORY_RESET
It will set factory reset mode by removing set value in NVRAM
It should need to set all value with SET and CFG command
RESET_TO_AP
It will set AP mode by keeping the set value in NVRAM
It will keep the previous set value in NVRAM
GET_STATUS
Getting current status
MCU can get the current status for DA16x00 all the time
RESTART
Reboots the device by keeping current mode and status
MCU_DATA
MCU can push a value to DA16x00 as a setting to CFG
command format
It will work well only if the value is the same format as CFG
setting