According to the “TCP/IP Application Note” document for BG95 it is recommend to wait some time after too many consecutive reboots. To do so, I am counting the number of reboots in my code.
I was wondering when is it appropriated to reset my reboot counter?
DO NOT reboot the module too frequently. If the module has been rebooted for 3 consecutive times due to a failed AT command, it can immediately be rebooted for the fourth time. If the command fails again, reboot the module for the fifth time in 10 minutes. If the command fails, reboot for the sixth time in 30 minutes, and if the command still fails, reboot for the seventh time in 1 hour