public static interface Settings.ConfigEditor
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Writes the new settings to the board
|
Settings.ConfigEditor |
setAdInterval(short interval,
byte timeout)
Sets advertising intervals
|
Settings.ConfigEditor |
setDeviceName(java.lang.String name)
Sets the device's advertising name
|
Settings.ConfigEditor |
setScanResponse(byte[] response)
Set a custom scan response packet
|
Settings.ConfigEditor |
setTxPower(byte power)
Sets advertising transmitting power.
|
Settings.ConfigEditor setDeviceName(java.lang.String name)
name - Device name, max of 8 ASCII charactersSettings.ConfigEditor setAdInterval(short interval, byte timeout)
interval - Advertisement interval, between [0, 65535] millisecondstimeout - Advertisement timeout, between [0, 180] seconds where 0 indicates no timeoutSettings.ConfigEditor setTxPower(byte power)
power - Valid values are: 4, 0, -4, -8, -12, -16, -20, -30Settings.ConfigEditor setScanResponse(byte[] response)
response - Byte representation of the responsevoid commit()