Package org.osgi.service.enocean
Interface EnOceanRPC
public interface EnOceanRPC
A very basic interface for RPCs.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the functionID for this RPC.int
Gets the manufacturerID for this RPC.getName()
Get a friendly name for the RPCbyte[]
Gets the current payload of the RPC.int
Sets the RPC's senderID.void
setSenderId
(int chipId) Sets the RPC's senderID.
-
Field Details
-
MANUFACTURER_ID
The Manufacturer ID property string, used in EventAdmin RPC broadcasting.- See Also:
-
FUNCTION_ID
The Function ID property string, used in EventAdmin RPC broadcasting.- See Also:
-
-
Method Details
-
getManufacturerId
int getManufacturerId()Gets the manufacturerID for this RPC.- Returns:
- manufacturer id.
-
getFunctionId
int getFunctionId()Gets the functionID for this RPC.- Returns:
- function id.
-
getPayload
byte[] getPayload()Gets the current payload of the RPC.- Returns:
- the payload, in bytes, of this RPC.
-
getSenderId
int getSenderId()Sets the RPC's senderID. This member has to belong toEnOceanRPC
interface, for the object may be sent as a standalone using EventAdmin for instance.- Returns:
- sender id.
-
setSenderId
void setSenderId(int chipId) Sets the RPC's senderID.- Parameters:
chipId
-
-
getName
String getName()Get a friendly name for the RPC- Returns:
- the name.
-