I am trying to use this SIM800_MQTT library for connecting on our SIM800 module. The SIM gets connected immediately to our server when the SIM is a local SIM. When ever we use a SIM in roaming i.e. with CREG as 0,5 then the library gets stuck in CREG and doesn't move forward. I have already tried changin the command as below but still it doesn't help.
I am trying to use this SIM800_MQTT library for connecting on our SIM800 module. The SIM gets connected immediately to our server when the SIM is a local SIM. When ever we use a SIM in roaming i.e. with CREG as 0,5 then the library gets stuck in CREG and doesn't move forward. I have already tried changin the command as below but still it doesn't help.
if(sendATreply("AT+CREG?\r\n", "0,5", 5000) == 1)