A DHT-Based Discovery Service for the Internet of Things