An OSGi middleware to enable the Sensor as a Service paradigm