Registering a Smart Object Class

Last modified: Jul 5, 2019 @ 06:45

Registering a Smart Object class requires a URL and an implementing class that will be used for the smart object type. For example:

deviceManager.registerSmartObject("/3303", InternalTemperature.class);

If a device that is registered to a gateway has a resource link that begins with the registered URL, the registered class is used for representing the smart object within that device.

In the above example, InternalTemperature will be used for Resource /3303/0/5700

The implementing class must extend SmartObjectBase.