Java API for Internet of Things