org.openmuc.jmbus
public interface WMBusSap
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the service access point and its associated serial port.
|
void |
open()
Opens the serial port of this service access point and then configures the transceiver (e.g.
|
void |
removeKey(SecondaryAddress address)
Removes the stored key for the given secondary address.
|
void |
setKey(SecondaryAddress address,
byte[] key)
Stores a pair of secondary address and cryptographic key.
|
void open() throws java.io.IOException
java.io.IOException
- if any kind of error occurs while opening.void close()
void setKey(SecondaryAddress address, byte[] key)
WMBusDataMessage.decode()
is called.address
- the secondary addresskey
- the cryptographic keyvoid removeKey(SecondaryAddress address)
address
- the secondary address for which to remove the stored key