It's a tablet, a Samsung Tab 6 lite, with its book case that turns off the display when the cover is closed
Looking at the battery, consumption appears from highest to lowest, and wifi seems to be the main consumption, then the display, immediately after there is the app I'm trying to optimize
I assume that the most energy-intensive part is the connection via mqtt with a remote telephone network broker, but I'm not sure
No way to measure the instantaneous consumption of an app?