Program for Mbed OS 5, which allows MAX32630FTHR to advertise the battery level using Bluetooth Low Energy (BLE) Generic Access Profile (GAP) mechanism
MAX32630FTHR has a MAX14690 PMIC integrated and a PAN1326B Dual Mode Bluetooth module. Using the PMIC, you can read the Voltage level of the battery connected to the ΜΑΧ32630FTHR, and advertise it to any bluetooth device, using BLE GAP.