public interface Settings extends MetaWearController.ModuleController
Modifier and Type | Interface and Description |
---|---|
static class |
Settings.Callbacks
Callbacks for the settings module
|
static class |
Settings.Register
Enumeration of registers for the settings module
|
Modifier and Type | Method and Description |
---|---|
void |
initiateBonding()
Triggers the board to initiate the Bluetooth bonding process with the
connected Android device
|
void |
keepBond()
Keep the bond on disconnect
|
void |
readAdvertisingParams()
Read advertisement parameeters from the board.
|
void |
readDeviceName()
Read the device name of the board.
|
void |
readTxPower()
Read the tx power from the board.
|
void |
removeBond()
Remove Bluetooth bond to the board on disconnect
|
Settings |
setAdvertisingInterval(short interval,
byte timeout)
Sets the advertisement parameters.
|
Settings |
setDeviceName(java.lang.String name)
Sets the device name
|
Settings |
setScanResponse(byte[] response)
Set a custom scan response packet
|
Settings |
setTXPower(byte power)
Sets the TX power.
|
void |
startAdvertisement()
Trigger the board to start advertising
|
void removeBond()
void keepBond()
void startAdvertisement()
void initiateBonding()
void readDeviceName()
Settings.Callbacks.receivedDeviceName(String)
callback function is
executedvoid readAdvertisingParams()
Settings.Callbacks.receivedAdvertisementParams(int, short)
callback
function is executedvoid readTxPower()
Settings.Callbacks.receivedTXPower(byte)
callback function is executedSettings setDeviceName(java.lang.String name)
name
- Max of 8 ASCII charactersSettings setAdvertisingInterval(short interval, byte timeout)
readAdvertisingParams()
function.interval
- Advertisement interval, between [0, 65535] millisecondstimeout
- Advertisement timeout, between [0, 180] seconds where 0 indicates no timeoutSettings setTXPower(byte power)
power
- Valid values are: 4, 0, -4, -8, -12, -16, -20, -30Settings setScanResponse(byte[] response)
response
- Byte representation of the response