Fighting Networking Heterogeneity in the Internet of Things