Is WiFi suitable for energy efficient IoT deployments? A performance study