5 Luat的mqtt使用SSL连接服务器失败,这个CONNECT ERROR 12,0,0,0,0是什么错误?

[2018-08-24 14:46:10.968]: [I]-[ril.proatc]

[2018-08-24 14:46:10.968]: [I]-[ril.proatc]OK

[2018-08-24 14:46:10.968]: [I]-[ril.sendat]AT+SSLINIT

[2018-08-24 14:46:10.984]: [I]-[ril.proatc]

[2018-08-24 14:46:10.984]: [I]-[ril.proatc]7, CONNECT OK

[2018-08-24 14:46:11.015]: [I]-[ril.proatc]

[2018-08-24 14:46:11.015]: [I]-[ril.proatc]SSL&0,INIT OK

[2018-08-24 14:46:11.015]: [I]-[ril.defrsp]AT+SSLINITtrueSSL&0,INIT OKnil

[2018-08-24 14:46:11.031]: [I]-[ril.sendat]AT+SSLCERT=0,"cacrt","ca.crt",1,1021

[2018-08-24 14:46:11.031]: [I]-[ril.proatc]> 

[2018-08-24 14:46:11.031]: [I]-[ril.procatc.send]first 200 bytes-----BEGIN CERTIFICATE-----

[2018-08-24 14:46:11.046]: MIICxjCCAa6gAwIBAgIJAJk1DbZBu8FDMA0GCSqGSIb3DQEBCwUAMBMxETAPBgNV

[2018-08-24 14:46:11.046]: BAMMCE15VGVzdENBMB4XDTE3MTEwMjEzNDI0N1oXDTE5MTEwMjEzNDI0N1owEzER

[2018-08-24 14:46:11.046]: MA8GA1UEAwwITXlUZXN0Q0EwggEiMA0GCSqGSIb3DQ

[2018-08-24 14:46:11.046]: [I]-[ril.proatc]

[2018-08-24 14:46:11.046]: [I]-[ril.proatc]SSL&0,INPUT CERT OK

[2018-08-24 14:46:11.062]: [I]-[ril.defrsp]AT+SSLCERT=0,"cacrt","ca.crt",1,1021trueSSL&0,INPUT CERT OKnil

[2018-08-24 14:46:11.062]: [I]-[ril.sendat]AT+SSLCERT=0,"localcrt","client.crt",1,1070

[2018-08-24 14:46:11.062]: [I]-[ril.proatc]> 

[2018-08-24 14:46:11.062]: [I]-[ril.procatc.send]first 200 bytes-----BEGIN CERTIFICATE-----

[2018-08-24 14:46:11.062]: MIIC6jCCAdKgAwIBAgIBAjANBgkqhkiG9w0BAQsFADATMREwDwYDVQQDDAhNeVRl

[2018-08-24 14:46:11.062]: c3RDQTAeFw0xNzExMDIxMzQyNDhaFw0xOTExMDIxMzQyNDhaMC0xGjAYBgNVBAMT

[2018-08-24 14:46:11.062]: EU1hY0Jvb2stQWlyLmxvY2FsMQ8wDQYDVQQKEwZjbG

[2018-08-24 14:46:11.078]: [I]-[ril.proatc]

[2018-08-24 14:46:11.093]: [I]-[ril.proatc]SSL&0,INPUT CERT OK

[2018-08-24 14:46:11.093]: [I]-[ril.defrsp]AT+SSLCERT=0,"localcrt","client.crt",1,1070trueSSL&0,INPUT CERT OKnil

[2018-08-24 14:46:11.093]: [I]-[ril.sendat]AT+SSLCERT=0,"localprivatekey","client.key",1,1675

[2018-08-24 14:46:11.093]: [I]-[ril.proatc]> 

[2018-08-24 14:46:11.109]: [I]-[ril.procatc.send]first 200 bytes-----BEGIN RSA PRIVATE KEY-----

[2018-08-24 14:46:11.109]: MIIEowIBAAKCAQEAvBqbaS9uYb9UGt4wp+FS7w0R/0qx4PcF76kZMx7oijMWE99J

[2018-08-24 14:46:11.109]: uPpHGl79+dAia5FfvJUduMHTewwVXsKQlJ8lAW85C3HMtS1M7p2d855t+4+nGrrQ

[2018-08-24 14:46:11.125]: 965QvYLAvXdLie+ORS8ebf+n9YzJPa1sZ/uIkh

[2018-08-24 14:46:11.125]: [I]-[ril.proatc]

[2018-08-24 14:46:11.125]: [I]-[ril.proatc]SSL&0,INPUT CERT OK

[2018-08-24 14:46:11.125]: [I]-[ril.defrsp]AT+SSLCERT=0,"localprivatekey","client.key",1,1675trueSSL&0,INPUT CERT OKnil

[2018-08-24 14:46:11.125]: [I]-[ril.sendat]AT+SSLCREATE=7,"47.94.139.142:8883",0

[2018-08-24 14:46:11.140]: [I]-[ril.proatc]

[2018-08-24 14:46:11.140]: [I]-[ril.proatc]SSL&7,CREATE OK

[2018-08-24 14:46:11.140]: [I]-[ril.defrsp]AT+SSLCREATE=7,"47.94.139.142:8883",0trueSSL&7,CREATE OKnil

[2018-08-24 14:46:11.140]: [I]-[ril.sendat]AT+SSLCERT=1,7,"cacrt","ca.crt"

[2018-08-24 14:46:11.156]: [I]-[ril.proatc]

[2018-08-24 14:46:11.171]: [I]-[ril.proatc]SSL&7,CONFIG CERT OK

[2018-08-24 14:46:11.171]: [I]-[ril.defrsp]AT+SSLCERT=1,7,"cacrt","ca.crt"trueSSL&7,CONFIG CERT OKnil

[2018-08-24 14:46:11.171]: [I]-[ril.sendat]AT+SSLCERT=1,7,"localcrt","client.crt",""

[2018-08-24 14:46:11.187]: [I]-[ril.proatc]

[2018-08-24 14:46:11.203]: [I]-[ril.proatc]SSL&7,CONFIG CERT OK

[2018-08-24 14:46:11.203]: [I]-[ril.defrsp]AT+SSLCERT=1,7,"localcrt","client.crt",""trueSSL&7,CONFIG CERT OKnil

[2018-08-24 14:46:11.203]: [I]-[ril.sendat]AT+SSLCERT=1,7,"localprivatekey","client.key"

[2018-08-24 14:46:11.218]: [I]-[ril.proatc]

[2018-08-24 14:46:11.234]: [I]-[ril.proatc]SSL&7,CONFIG CERT OK

[2018-08-24 14:46:11.234]: [I]-[ril.defrsp]AT+SSLCERT=1,7,"localprivatekey","client.key"trueSSL&7,CONFIG CERT OKnil

[2018-08-24 14:46:11.234]: [I]-[ril.sendat]AT+SSLCONNECT=7

[2018-08-24 14:46:11.234]: [I]-[ril.proatc]

[2018-08-24 14:46:11.234]: [I]-[ril.proatc]OK

[2018-08-24 14:46:11.250]: [I]-[ril.sendat]AT+CIPSEND=7,48

[2018-08-24 14:46:11.250]: [I]-[ril.proatc]

[2018-08-24 14:46:11.265]: [I]-[ril.proatc]> 

[2018-08-24 14:46:11.265]: [I]-[ril.procatc.send]first 200 bytes

[2018-08-24 14:46:11.265]: [I]-[ril.proatc]

[2018-08-24 14:46:11.281]: [I]-[ril.proatc]7, SEND OK

[2018-08-24 14:46:11.703]: [I]-[ril.proatc]

[2018-08-24 14:46:11.718]: [I]-[ril.proatc]+RECEIVE,7,48:

[2018-08-24 14:46:11.734]: [I]-[ril.proatc]$

[2018-08-24 14:46:11.734]: [I]-[ril.sendat]AT+CCLK="18/08/24,14:46:11+32"

[2018-08-24 14:46:11.750]: [I]-[ril.proatc]

[2018-08-24 14:46:11.750]: [I]-[ril.proatc]OK

[2018-08-24 14:46:11.750]: [I]-[ril.sendat]AT+CIPCLOSE=7

[2018-08-24 14:46:11.781]: [I]-[ril.proatc]

[2018-08-24 14:46:11.781]: [I]-[ril.proatc]7, CLOSE OK

[2018-08-24 14:46:11.781]: [I]-[ntp.timeSync is date:]2018/8/24,14:46:11

[2018-08-24 14:46:41.796]: [I]-[ril.proatc]

[2018-08-24 14:46:41.796]: [I]-[ril.proatc]SSL&7,CONNECT ERROR: 12,0,0,0,0

[2018-08-24 14:46:41.812]: [I]-[ril.sendat]AT+SSLDESTROY=7

[2018-08-24 14:46:41.859]: [I]-[ril.proatc]

[2018-08-24 14:46:41.859]: [I]-[ril.proatc]SSL&7,DESTROY OK

[2018-08-24 14:46:41.859]: [I]-[mqtt.client:connect]connect host fail


请先 登录 后评论

3 个回答

技术销售Wendal - 软件工程师
擅长:软件开发

网络问题 或 设备问题, 我在阿里云mqtt的时候经常遇到, 最终的解决办法就是检测到无法连接之后, 软重启

请先 登录 后评论
技术销售Delectate
擅长:IT

连接服务器超时。

attachments-2018-08-hPGU0YP45b7fb1ddc2a49.png

请先 登录 后评论
mylovehx

连接超时,请检查服务器的监控端口是否启动,第二请检查服务器 0trueSSL 是否正确开启,请用其他PC客户端模拟连接服务器是否出现同样定位情况。

请先 登录 后评论
  • 2 关注
  • 0 收藏,3665 浏览
  • yangxingfu 提出于 2018-08-24 14:49

相似问题