Hi sir,
I had checked the application note for M66 and understood the parameters and based on the application note I have created commands as per my knowledge
as below:
AT+QMTCFG =“WILL”,0,0,1,“test”,“HI”
AT+QMTCFG=“TIMEOUT”,0,10,5,0
AT+QMTCFG=“SESSION”,0,1
AT+QMTCFG=“KEEPALIVE”,0,120
AT+QMTCFG=“VERSION”,0,1
AT+QMTCFG=“SSL”,0,0,0
AT+QMTCFG=“ALIAUTH”,0,“password”,“username”,“wN9Y6pZSIIy7Exa5qVzcmigEGO4kAazZ”
AT+QMTOPEN=0,“xxx.cloudmqtt.com”,xxxxx
AT+QMTCONN = 0,“test”,“username”,“password”
AT+QMTSUB=0,1,“topic/example”,0
AT+QMTSUB=0,1,“topic/pub”,0
AT+QMTPUB=0,1,0,0,“topic/pub”
This is test data, hello MQTT. CTRL+Z
AT+QMTDISC=0
Note: connection id is :0 it can be anything between 0 to 5 correct?
SSL is disabled,
device secret is any string is we can add correct ?
I am bit confusing with the config type "“aliauth”
AT+QMTCFG=“ALIAUTH”,0,“password”,“username”,“secret key”
should I use same as above (aliauth) or can I add my own config type please help me.
can you please frame the the below command with my credentials:
- AT+QMTCFG=“ALIAUTH”,0,“password”,“username”,“secret key”
|server|xxx.xxxxxxx.com|
|—|---|
|User|xxxusernamexxxx|
|Password|xxxxpasswordxxxxxx|
|Port|xxportxx|
|SSL Port|xxxssl portxx|
|Websockets Port (TLS only)|xxxweb portxx|
|Api Key|xxxxxxxxxapikeyxxxxxxxxxx|
I am confusing how to frame the command.
thank you.