hi, chris5:
I suggest that you first use the MQTT.fx tool to test the correctness of the relevant CA certificates and the connectivity of the MQTT server.
Second, you should refer to our MQTT instruction manual for implementation procedures and read the instructions carefully.
Hi Herbert.pan-Q,
The certificates works using WiFi on raspberry pi, incl. subscribing to topics.
I checked internet connectivity using ntp sync on the BC66. So seems fine.
My main question on certificate upload is, can I simply copy and paste the content of the pem file. Including \n\r line breaks and intro statements like -----begin certificate? Or do linebreaks need to be stripped away.
Is there anyway to download the certificates to see if they are properly uploaded?
I connected to BC66 via UART over USB - minicom. After AT commands there is still no SSL connection established. Neither the original PEM, nor removing line breaks etc. showed any effect.
hi,
If you still have not successfully connected to Google MQTT server, I suggest you perform relevant operations on the Win10 system through the reference manual.
hi, chris5:
I suggest you use Azure platform for debugging according to our manual. According to the current feedback, there are many exceptions in the CA certificate process when connecting to other MQTT servers.
Thank you for this suggestion. I downloaded the respective certificates and tested the connection to the different broker with MQTT.fx. All works fine.
Still, I receive
AT+QSSLOPEN=1,5,“mqtt.2030.ltsapis.goog”,8883,0
OK
+QSSLOPEN: 1,5,-9
Accordingly AT+QMTOPEN (after setting up according to BC66 manual) gives.
+QMTOPEN: 1,-1
So I can’t even send the client_id and use private key + JWT as the SSL connection can not be established.
Interestingly the message does not change, when I change the url to “xyz.com” and port to 3388. Once I switch back to seclevel,0 at least QSSLOPEN works, but connection is closed after some seconds.
If I change the “cacert” to random content or anything, than I receive the same error.
Is there any way to debug this? “debug”,4 also does not give any output.