N20AT Command ManualCopyright © Neoway Technology Co., Ltd 107OKRemarks N/A14.4 Connection Command: +AWSCONNDescription To connect to the MQTT serverFormat AT+AWSCONN=< keepAlive>,,<version>Parameter: time period of keepAlive, mandatory, ranging from 5 to 600seconds, 60 seconds by default: to specify whether to clear the sessions0: Not clear1: clear<version>: MQTT version4: 3.1.1Return Value OKExampleAT+AWSCONN=60,1,4OKConnect to the MQTTserverSuccessfullyRemarks Only clean =1, version=4 are supported in version 2.3.0.14.5 Subscribing to Topic: +AWSSUBDescription To subscribe to a topicFormat AT+AWSSUB=<topicname>,Parameter <topicname>: topic to subscribe to, max. 128 bytes<qos>: quality of service, 0 and 1 are supportedReturn Value OK<CR>ERRORExample AT+AWSSUB=nwy_test/01,1OKSubscribe to the topicsuccessfully.