XIAO ESP32S3 Sense - Battery charging

Thank you very much for your kind assistance.

You are correct. The WiFi Camera Server does continue to run after the USB-C is disconnected and the battery still connected. But, the video freezes. The settings menu remains active, however. I can still start and stop the stream, but then, there is no video without the USB-C.

With regard to your suggestion:

while(!Serial); //When the serial port is opened, the program starts to execute.

Are you suggesting that I add a while loop to the sketch?

Thank you again for your assistance.

Best regards,
Larry