Hello,
I am developping a product using the BG95-M5 and I would like to use MQTT with amazon aws.
Here are the AT commands i send as well as the modem answers :
AT+QMTCFG=“SSL”,0,1,2
OK
AT+QMTCFG=“version”,0,4
OK
AT+QFDEL="*"
OK
AT+QFUPL=“cacert.pem”,1189,100
CONNECT
<AWS_CA_cert.pem>
+QFUPL: 1189,2d13
OK
AT+QFUPL=“client.pem”,1221,100
CONNECT
<private_key.pem>
+QFUPL: 1221,21c
OK
AT+QFUPL=“user_key.pem”,1680,100
CONNECT
<certificate.pem>
+QFUPL: 1680,57
OK
AT+QSSLCFG=“cacert”,2,“cacert.pem”
OK
AT+QSSLCFG=“clientcert”,2,“client.pem”
OK
AT+QSSLCFG=“clientkey”,2,“user_key.pem”
OK
AT+QSSLCFG=“seclevel”,2,2
OK
AT+QSSLCFG=“sslversion”,2,4
OK
AT+QSSLCFG=“ciphersuite”,2,0XFFFF
OK
AT+QSSLCFG=“ignorelocaltime”,2,1
OK
AT+CPIN?
+CPIN: READY
OK
AT+CMEE=2
OK
AT+COPS?
+COPS: 0,0,“Orange F”,0
OK
AT+CREG?
+CREG: 0,5
OK
AT+QICSGP=1,1,“Orange F”,"","",1
OK
AT+QIACT=1
OK
AT+QIACT?
+QIACT: 1,1,1,“10.160.151.51”
OK
AT+QMTOPEN=0,"********-ats.iot.us-east-1.amazonaws.com",8883
+QMTOPEN: 0,-1
ERROR
I have tried with different ending lines for my certificates with the following : \n, \r and \r\n and none works for me. Can you give details abou the exact format for the certificates ? Or else do you have an idea why I cannot open the MQTT connection ?
Thank you by advance
Augustin