The uBlox documentation of the cellular module states:
The DTE should wait some time (the recommended value is at least 20 ms) after the reception of an AT command final result code or URC before issuing a new AT command to give the DCE the opportunity to transmit the buffered URCs. Otherwise the collision of the URCs with the subsequent AT command is still possible.
Is there any delay implemented into Cellular.command() or in any other place?
If not, where should I place this delay, at the end of the callback function that I specify in the Cellular.command() call or right after the Cellular.command() call?
The first option seems like a good one since it provides a way to write reusable code but my concern is that the cellular module won’t consider a command as being finished until the callback function exits.
Any help would be greatly appreciated.