UAV and IoT integration: A flying gateway