Battery question

Hi just one question. i installed an autonomo with LoRa. programmed it with arduino software and it works perfect as connected to the usb. after disconnecting usb it doesn’t work on battery? how do i fix that?

It should continue to run using power from the battery.
In some cases, you may have to reset the board after disconnecting the USB.

Additionally, it is possible to write code which will block or cease to function without the USB connected.
e.g. a line of code like this will block if the USB is not connected (and the port open).

while(!SerialUSB);

Thanks for helping. it works