public interface EnOceanDevice
Modifier and Type | Field and Description |
---|---|
static String |
CHIP_ID
Property name for the mandatory CHIP_ID of the device
|
static String |
DEVICE_CATEGORY
Property name for the mandatory DEVICE_CATEGORY of the device
|
static String |
ENOCEAN_EXPORT
Property name that defines if the device is exported or not.
|
static String |
FUNC
Property name for the radiotelegram functional type of the profile
associated with this device.
|
static String |
MANUFACTURER
Property name for the manufacturer ID that may be specified by some
teach-in messages.
|
static String |
RORG
Property name for the radiotelegram main type of the profile associated
with this device.
|
static String |
SECURITY_LEVEL_FORMAT
Property name for the security level mask for this device.
|
static String |
TYPE
Property name for the radiotelegram subtype of the profile associated
with this device.
|
Modifier and Type | Method and Description |
---|---|
int |
getChipId() |
byte[] |
getEncryptionKey()
Returns the current encryption key used by this device.
|
int |
getFunc() |
int[] |
getLearnedDevices()
Gets the list of devices the device already has learned.
|
int |
getManufacturer() |
int |
getRollingCode()
Get the current rolling code of the device.
|
int |
getRorg() |
Map |
getRPCs()
Retrieves the currently available RPCs to this device; those are stored
using their manfufacturerId:commandId identifiers.
|
int |
getSecurityLevelFormat() |
int |
getType() |
void |
invoke(EnOceanRPC rpc,
EnOceanHandler handler)
Sends an RPC to the remote device.
|
void |
remove()
Removes the device's OSGi service from OSGi service platform.
|
void |
setEncryptionKey(byte[] key)
Sets the encryption key of the device.
|
void |
setFunc(int func)
Manually sets the EEP FUNC of the device.
|
void |
setLearningMode(boolean learnMode)
Switches the device into learning mode.
|
void |
setRollingCode(int rollingCode)
Sets the rolling code of this device.
|
void |
setType(int type)
Manually sets the EEP TYPE of the device.
|
static final String DEVICE_CATEGORY
static final String CHIP_ID
static final String RORG
static final String FUNC
static final String TYPE
static final String MANUFACTURER
static final String SECURITY_LEVEL_FORMAT
static final String ENOCEAN_EXPORT
int getChipId()
int getRorg()
int getFunc()
int getType()
int getManufacturer()
int getSecurityLevelFormat()
void setFunc(int func)
func
- the EEP func of the device;void setType(int type)
type
- the EEP type of the device;void setLearningMode(boolean learnMode)
learnMode
- the desired state: true for learning mode, false to
disable it.int getRollingCode()
void setRollingCode(int rollingCode)
rollingCode
- the rolling code to be set or initiated.byte[] getEncryptionKey()
void setEncryptionKey(byte[] key)
key
- the encryption key to be set.int[] getLearnedDevices()
Map getRPCs()
void invoke(EnOceanRPC rpc, EnOceanHandler handler)
rpc
- handler
- IllegalArgumentException
void remove()
Copyright © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0