[ x] I have read the Troubleshooting section of the ReadMe
What type of issues is this?
[ ] Request to support a new module
[ ] Bug or problem compiling the library
[ x] Bug or issue with library functionality (ie, sending data over TCP/IP)
[x ] Question or request for help
What are you working with?
Modem: SIMCOM SIM7000A FW:1351B04SIM7000A
Main processor board: Uno
TinyGSM version: (0.11.4)
Code:
MqttClient
Scenario, steps to reproduce
I am trying to open a connection to my MQTT broker using SSL. I CAN get this to connect by running the same commands over USB in putty It seems the response is just never heard or properly handled??
Expected result
+CAOPEN: 0,0
OK
+CASTATE: 0,0
Actual result
Failure to open connection or unhandled response using SSL CAOPEN called by the mqttConnect function from the example mqtt code.
No response. Eventually the request times out and displays a failure.
Debug and AT command log
`AT+IPR=9600
OK
AT+CBANDCFG="CAT-M",13
AT+CBANDCFG="CAT-M",13
OK
AT+CSSLCFG="convert",2,"server-cert.pem"
AT+CSSLCFG="convert",2,"server-cert.pem"
OK
AT+CSSLCFG="convert",1,"client.pem","keyuncr.key","123"
AT+CSSLCFG="convert",1,"client.pem","keyuncr.key","123"
OK
ATI
ATI
SIM7000A R1351
OK
Modem Info: ATI SIM7000A R1351
AT+CPIN?
AT+CPIN?
+CPIN: READY
OK
success
AT+CEREG?
AT+CEREG?
+CEREG: 0,1
OK
Network connected
Connecting to privatevzwentpAT+CGDCONT=1,"IP","privatevzwentp"
AT+CGDCONT=1,"IP","privatevzwentp"
OK
AT+CGATT=1
AT+CGATT=1
OK
AT+CNCFG=1,"privatevzwentp"
AT+CNCFG=1,"privatevzwentp"
ERROR
AT+CNACT=1,"privatevzwentp"
AT+CNACT=1,"privatevzwentp"
OK
+APP PDP: ACTIVE
success
AT+CGATT?
AT+CGATT?
+CGATT: 1
OK
AT+CNACT?
AT+CNACT?
+CNACT: 1,"10.100.0.9"
OK
GPRS connected
AT+CACID=0
AT+CACID=0
OK
Connecting to broker.comAT+CASTATE?
AT+CASTATE?
+CASTATE: 0,0
+CASTATE: 1,0
OK
AT+CSSLCFG="sslversion",0,3
AT+CSSLCFG="sslversion",0,3
OK
AT+CASSLCFG=0,ssl,1
AT+CASSLCFG=0,ssl,1
OK
AT+CASSLCFG=0,crindex,0
AT+CASSLCFG=0,crindex,0
OK
[13932] ### Unhandled: AT+CASSLCFG=0,crindex,0
OK
AT+CSSLCFG="sni",0,"broker.com"
AT+CSSLCFG="sni",0,"broker.com"
OK
AT+CASSLCFG=0,"cacert","server-cert.pem"
AT+CASSLCFG=0,"cacert","server-cert.pem"
OK
AT+CASSLCFG=0,"clientcert","client.pem"
AT+CASSLCFG=0,"clientcert","client.pem"
OK
AT+CAOPEN=0,"broker.com",8884
`
[ x] I have read the Troubleshooting section of the ReadMe
What type of issues is this?
[ ] Request to support a new module
[ ] Bug or problem compiling the library [ x] Bug or issue with library functionality (ie, sending data over TCP/IP) [x ] Question or request for help
What are you working with?
Modem: SIMCOM SIM7000A FW:1351B04SIM7000A Main processor board: Uno TinyGSM version: (0.11.4)
Code: MqttClient
Scenario, steps to reproduce
I am trying to open a connection to my MQTT broker using SSL. I CAN get this to connect by running the same commands over USB in putty It seems the response is just never heard or properly handled??
Expected result
+CAOPEN: 0,0
OK
+CASTATE: 0,0
Actual result
Failure to open connection or unhandled response using SSL CAOPEN called by the mqttConnect function from the example mqtt code. No response. Eventually the request times out and displays a failure.
Debug and AT command log
`AT+IPR=9600 OK AT+CBANDCFG="CAT-M",13 AT+CBANDCFG="CAT-M",13 OK AT+CSSLCFG="convert",2,"server-cert.pem" AT+CSSLCFG="convert",2,"server-cert.pem" OK AT+CSSLCFG="convert",1,"client.pem","keyuncr.key","123" AT+CSSLCFG="convert",1,"client.pem","keyuncr.key","123" OK ATI ATI SIM7000A R1351
OK Modem Info: ATI SIM7000A R1351 AT+CPIN? AT+CPIN? +CPIN: READY
OK success AT+CEREG? AT+CEREG? +CEREG: 0,1
OK Network connected Connecting to privatevzwentpAT+CGDCONT=1,"IP","privatevzwentp" AT+CGDCONT=1,"IP","privatevzwentp" OK AT+CGATT=1 AT+CGATT=1 OK AT+CNCFG=1,"privatevzwentp" AT+CNCFG=1,"privatevzwentp" ERROR AT+CNACT=1,"privatevzwentp" AT+CNACT=1,"privatevzwentp" OK
+APP PDP: ACTIVE success AT+CGATT? AT+CGATT? +CGATT: 1
OK AT+CNACT? AT+CNACT? +CNACT: 1,"10.100.0.9"
OK GPRS connected AT+CACID=0 AT+CACID=0 OK Connecting to broker.comAT+CASTATE? AT+CASTATE? +CASTATE: 0,0 +CASTATE: 1,0
OK AT+CSSLCFG="sslversion",0,3 AT+CSSLCFG="sslversion",0,3 OK AT+CASSLCFG=0,ssl,1 AT+CASSLCFG=0,ssl,1 OK AT+CASSLCFG=0,crindex,0 AT+CASSLCFG=0,crindex,0 OK [13932] ### Unhandled: AT+CASSLCFG=0,crindex,0 OK AT+CSSLCFG="sni",0,"broker.com" AT+CSSLCFG="sni",0,"broker.com" OK AT+CASSLCFG=0,"cacert","server-cert.pem" AT+CASSLCFG=0,"cacert","server-cert.pem" OK AT+CASSLCFG=0,"clientcert","client.pem" AT+CASSLCFG=0,"clientcert","client.pem" OK AT+CAOPEN=0,"broker.com",8884 `