I need a little assistance with some AT commands for MQTT please. I have been playing with the AT_Command_Test
sketch that comes with the WisBlock examples in the Arduino IDE. I also have a RAK2305 flashed with the appropriate MQTT firmware. I have confirmed that MQTT AT commands are working, but I seem to be having trouble getting connected to my broker. I’m using the following two commands to connect and then report on the connection:
// Create MQTT Connection
Serial1.println("AT+MQTTCONN=0,\"192.168.0.91\",1883,1");
execute_at("AT+MQTTCONN=0,\"192.168.0.91\",1883,1\"\r\n", "OK");
delay(5000);
// Check MQTT Connection
Serial1.println("AT+MQTTCONN?");
execute_at("AT+MQTTCONN?", "OK");
delay(5000);
When I check the serial console, I see the following:
17:23:59.607 ->
17:23:59.607 -> busy p...
17:23:59.607 ->
17:23:59.607 -> ERROR
17:23:59.607 ->
17:23:59.607 -> Execute Fail.
17:24:06.559 -> AT+MQTTCONN?
17:24:06.559 ->
17:24:06.559 -> busy p...
17:24:06.559 -> +MQTTCONN:0,0,0,"","","",0
17:24:06.559 ->
17:24:06.559 -> OK
17:24:06.559 ->
17:24:06.559 -> Execute OK.
Any suggestions?