I am using the GPS and MQTT API on BG95-M1 using the QuecOpen SDK. I am aware that GPS and MQTT cannot work simultaneously so I am using a timer to switch between GPS & MQTT. When I run the program the MQTT connects successfully followed by GPS after the timer expires. However, after getting the GPS when I switch back to MQTT I am unable to connect to the MQTT anymore.
What could be the cause for this?
How do I ensure that after GPS the MQTT connects successfully every time?