public interface WMBusSap
extends java.lang.AutoCloseable
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. sets the
transmission mode).
|
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()
close
in interface java.lang.AutoCloseable
void setKey(SecondaryAddress address, byte[] key)
WMBusMessage.decode()
is called.address
- the secondary addresskey
- the cryptographic keyvoid removeKey(SecondaryAddress address)
address
- the secondary address for which to remove the stored key