Skip to content

Util methods for registrate service #136

@muuki88

Description

@muuki88

Create a util class or methods in AbstractSensor for easy registration.

String[] driverClasses = new String[] { ISensorDriver.class.getName(), Driver.class.getName() };
String[] sensorClasses = new String[] { ISensor.class.getName(), Device.class.getName() };

ISensor sensor = new MySensor();
Dictionary<String, Object> sensorProps = new Hashtable<>();
sensorProps.put(Constants.DEVICE_CATEGORY, sensor.getCategory());
sensorProps.put(Constants.DEVICE_DESCRIPTION, sensor.getDescription());

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions