P2P communication for the Internet of Things