SIM800MQTT
SIM800MQTT copied to clipboard
Execution blocked on SIM800_SendCommand
During the MQTT initialization (function MQTT_Init), the execution suddenly blocks on SIM800_SendCommand.
Below is a screenshot showing where the code stop working.
I'm not able to understand why the code execution stops right there.
Do you have any suggstion on what to debug?
Thanks,
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.