SIM800MQTT icon indicating copy to clipboard operation
SIM800MQTT copied to clipboard

Execution blocked on SIM800_SendCommand

Open mde398 opened this issue 4 years ago • 1 comments

During the MQTT initialization (function MQTT_Init), the execution suddenly blocks on SIM800_SendCommand.

Below is a screenshot showing where the code stop working.

error

I'm not able to understand why the code execution stops right there.

Do you have any suggstion on what to debug?

Thanks,

mde398 avatar Aug 12 '21 14:08 mde398

Hi. Check the settings for module response delays in the file MQTTSim800.h If you don't use FREERTOS, you should have the parameter FREERTOS set to 0.

// === CONFIG ===
#define UART_SIM800 &huart2
#define FREERTOS    0
#define CMD_DELAY   2000
// ==============

If you use FREERTOS, you should have the parameter FREERTOS set to 1.

leech001 avatar Aug 13 '21 11:08 leech001