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, waitclose, getInputStream, getOutputStream, isOpen, open, readData, readData, writeData, writeDatapublic AbstractBluetoothInterface()
public ConnectionType getConnectionType()
IConnectionInterfacegetConnectionType in interface IConnectionInterfaceConnectionTypepublic 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 - 2019 Digi International Inc. All rights reserved.