I have a device in which I have used a 3.7 V lithium-ion battery as the power supply. For charging this battery I am using a TP4056 module.
When I connect a battery to the TP4056, the battery fully charges and the TP4056 disconnects the power to the battery and the device starts to run from the battery. When the battery drains approx. 30 mV, it again starts charging until full.
My device can run from 3.7 V to 4.2 V.
Now I want to make it more reliable for my device. When a battery has fully charged, it's disconnected by the TP4056 module and it stops giving current to the battery and the device starts to run from the battery and when the battery drains approx. 30 to 50 mV, the charger module wakes up again and starts charging and it will affect the life cycle of the battery.
What I want is this: when my device is connected to the adapter and if the battery is fully charged, then my device should run from the power supply, hence the battery won't drain until the power adapter is disconnected.