Hi,
I am developing an application for Thingy:91 in which I want to send data from the device to MQTT server. I am using 1.1.1 modem firmware and 1.2.0 ncs tag.
The whole MQTT procedure is more or less the same as in mqtt_simple_sample, but since the whole application is supposed to continuously send GPS data, and therefore the device is on the move, I need to make sure that I am actually able to connect with MQTT client every time I try to send data. What I believe is the right approach is to check the output of CEREG and/or CESQ at commands, but I do have some doubts:
- is it correct to say that the network can be registered (CEREG will return 5 or 1), but the signal will be to weak and the client connection or data publish procedure will fail?
- if so, what is the required signal strength to perform this procedure?
- is it true that if modem gets the AT+CFUN=21 command once, it will automatically try to reconnect to the network after losing the signal (no need for sending AT+CFUN=21 again)
- since in the last modem firmware version (1.1.1) there were introduced AT+CFUN= 21, 31 and other parameters related to activating/deactivating LTE and GPS (or at least I wasn't aware of them in the 1.1.0 and previous versions of MFW), is it correct to say that the AT+CFUN=21 "activates LTE" in a sense that previously was done by AT+CFUN=1 together with AT+CEREG=5?
Regards,
Maciek