public class DeviceServiceProxy extends Proxy<DeviceService> implements DeviceService
DeviceService
.Constructor and Description |
---|
DeviceServiceProxy() |
Modifier and Type | Method and Description |
---|---|
void |
addConfigListener(ConfigListener listener)
Adds a configuration listener notified when the config of the device changes.
|
void |
removeConfigListener(ConfigListener listener)
Removes a configuration listener.
|
void |
setEvent(byte[] data)
Sets events.
|
void |
setState(byte[] data)
Sets the state of Device.
|
void |
setSubEvent(String subEvent,
byte[] data)
Sets sub-events.
|
getReference, invoke, invokeBoolean, invokeByte, invokeChar, invokeDouble, invokeFloat, invokeInt, invokeLong, invokeRef, invokeShort
public void addConfigListener(ConfigListener listener) throws IOException
DeviceService
addConfigListener
in interface DeviceService
listener
- the right ConfigListener that will get notifiedIOException
- on subscription error to the config topicpublic void removeConfigListener(ConfigListener listener) throws IOException
DeviceService
removeConfigListener
in interface DeviceService
listener
- the right ConfigListener that will get notifiedIOException
- on subscription error to the config topicpublic void setEvent(byte[] data) throws IOException
DeviceService
setEvent
in interface DeviceService
data
- application-dependent event dataIOException
- on connection issues and errors of communicationpublic void setState(byte[] data) throws IOException
DeviceService
setState
in interface DeviceService
data
- application-dependent state dataIOException
- on connection issues and errors of communicationpublic void setSubEvent(String subEvent, byte[] data) throws IOException
DeviceService
setSubEvent
in interface DeviceService
subEvent
- the wanted sub-folder of eventsdata
- application-dependent sub-event dataIOException
- on connection issues and errors of communication