Things as a service: Service model for IoT