This question already has an answer here:
I have an esp32 nodemcu hooked up to a powerbank. My issue is that the power consumption is so low, that the powerbank thinks there's nothing connected to it and some electronics inside then tell it after a few minutes to stop delivering power to that port.
It's running a Bluetooth GATT server, so my next attempt is to make it try to constantly connect to an WiFi AP in parallel, but I'd like to know if there is another way, ie by using a variable resistor, but I'm not sure where to put it.
It should be as compact as possible, so no adapter between the USB plugs.