I’m working on a battery powered controller using the SODAQ SARA R410M. I’m trying to figure out wether it’s more power efficient to keep the SARA connected or to have it go to sleep and reconnect every time it needs to send data. So far I’ve been using the code provided during the workshop in order to determine the time it takes to connect. Being able to see what is happening through the serial monitor is very useful. Yet the workshop code has a lot of functions I don’t want to use. That’s why I would like to write my own code that simply connects to the NB-IOT network and sends a couple of bytes of data.
Are there any of you who have done something similar? I’m pretty new to AT commands. How does one send AT commands using a .c file for example?
Thanks in advance!