QoS-aware sum capacity maximization for mobile internet of things devices served by UAVs