Say I have an app that needs to send some small packets from time to time to a server, no particular interval (well maybe a maximum interval). Since one doesn't want to wake the CPU+radio+other SoC crap every time one sends a packet (poor battery!) is it possible (aka is there an API) to send packets to a queue so they are sent as soon as possible preferably next time radio wakes up?
I know it's convoluted but think about it, messages like ping (old WhatsApp versions used to ping server every 30 or 60 seconds) or similar keepalive packets would benefit from this a lot!