Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
Bluetooth roles from the perspective of the link layer (connection initiator). More...
Public Member Functions | |
BTRole (final byte v) | |
final BTRole | reverse () |
Returns reversed roled. More... | |
Static Public Member Functions | |
static BTRole | get (final byte value) |
Maps the specified integer value to a constant of BTRole . More... | |
static BTRole | get (final String name) throws IllegalArgumentException |
Maps the specified name to a constant of BTRole. More... | |
Public Attributes | |
Master =((byte)1) | |
Master or central role, discovering remote devices and initiating connection. More... | |
None =((byte)0) | |
Undefined role. More... | |
Slave =((byte)2) | |
Slave or peripheral role, advertising and waiting for connections to accept. More... | |
final byte | value |
Bluetooth roles from the perspective of the link layer (connection initiator).
See get(byte)
for its native integer mapping.
Definition at line 36 of file BTRole.java.
org.direct_bt.BTRole.BTRole | ( | final byte | v | ) |
Definition at line 74 of file BTRole.java.
|
static |
Maps the specified name to a constant of BTRole.
Implementation simply returns valueOf(String)
. This maps the constant names itself to their respective constant.
name | the string name to be mapped to a constant of this enum type. |
IllegalArgumentException | if the specified name can't be mapped to a constant of this enum type as described above. |
Definition at line 57 of file BTRole.java.
|
static |
Maps the specified integer value to a constant of BTRole
.
value | the integer value to be mapped to a constant of this enum type. |
None
if not supported. Definition at line 66 of file BTRole.java.
final BTRole org.direct_bt.BTRole.reverse | ( | ) |
Returns reversed roled.
Definition at line 79 of file BTRole.java.
org.direct_bt.BTRole.None =((byte)0) |
Undefined role.
Definition at line 38 of file BTRole.java.
org.direct_bt.BTRole.Master =((byte)1) |
Master or central role, discovering remote devices and initiating connection.
This is a GATT client.
Definition at line 40 of file BTRole.java.
org.direct_bt.BTRole.Slave =((byte)2) |
Slave or peripheral role, advertising and waiting for connections to accept.
This is a GATT server.
Definition at line 42 of file BTRole.java.
final byte org.direct_bt.BTRole.value |
Definition at line 44 of file BTRole.java.