i am using Xiao ESP32 C3 to advertise BLE as a server with following code.
It works perfect when power up with USB C but nothing when when attaching 3.7V Li-Po battery.
Note:
When checking 3v terminal on board, voltage is enough.
I have tried the program without Serial Print as well
//Trolley Broadcast
#include <BLEDevice.h>
#include <BLEUtils.h>
#include <BLEServer.h>
BLEServer* pServer = NULL;
void setup() {
Serial.begin(115200);
BLEDevice::init("Helmet");
pServer = BLEDevice::createServer();
BLEAdvertising* pAdvertising = pServer->getAdvertising();
pAdvertising->setScanResponse(true);
pAdvertising->start();
Serial.println("Advertising started...");
}
void loop() {
delay(2000);
}