arduino-libraries / ArduinoMqttClient

ArduinoMqttClient Library for Arduino
GNU Lesser General Public License v2.1
186 stars 73 forks source link

MQTT not connecting to AWS IOT with MKR NB 15000 #82

Open mrks89 opened 1 year ago

mrks89 commented 1 year ago

I am using the Cloud Example from Arduino IDE and could establish a NB-IOT connection but now I am stuck on the mqtt connection. I read many thread but nobody seems to have the exact same issue. The sole response of "ERROR" does not lead me to anything. I am connected to PC via USB and antenna attached.

Here is my debug log:

OK
AT+CEREG?

+CEREG: 0,1

OK
You're connected to the cellular network

Attempting to MQTT broker: xxxxxx.1.amazonaws.com
AT+USOCR=6

+USOCR: 0

OK
AT+USOCO=0,"xxxxxx.1.amazonaws.com",8883

ERROR

+UUSOCL: 0
AT+USOCL=0

ERROR
.AT+USOER

+USOER: 9

OK
AT+USOCR=6

+USOCR: 0

OK
AT+USOCO=0,"xxxxxx.1.amazonaws.com",8883

ERROR

This repeats infinite times.

mrks89 commented 1 year ago

@per1234 what is missing?

per1234 commented 1 year ago

@mrks89 this is a place to submit formal reports of defects or proposals for enhancements regarding the code hosted in the repository. Those reports and proposals may eventually be evaluated and resolved by the developers.

This is not a place to request assistance with your project. If you were hoping for that, you must post on the Arduino Forum:

https://forum.arduino.cc/

sprucify commented 1 year ago

Check if you get back an DNS server from your provider

AT+CGCONTRDP

Have you setup certificates right?