public abstract class AbstractBluetoothInterface extends Object implements IConnectionInterface
Constructor and Description |
---|
AbstractBluetoothInterface() |
Modifier and Type | Method and Description |
---|---|
ConnectionType |
getConnectionType()
Returns the connection type of the interface.
|
void |
setEncryptionKeys(byte[] key,
byte[] txNonce,
byte[] rxNonce)
Sets the encryption keys and starts to encrypt the communication with the
module.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getInputStream, getOutputStream, isOpen, open, readData, readData, writeData, writeData
public AbstractBluetoothInterface()
public ConnectionType getConnectionType()
IConnectionInterface
getConnectionType
in interface IConnectionInterface
ConnectionType
public void setEncryptionKeys(byte[] key, byte[] txNonce, byte[] rxNonce) throws XBeeException
key
- Session key.txNonce
- TX nonce used as prefix of the counter block.rxNonce
- RX nonce used as prefix of the counter block.XBeeException
- if there is any error setting up the ciphers.© Copyright 2014 - 2024 Digi International Inc. All rights reserved.