57 public static BTRole get(
final String name)
throws IllegalArgumentException {
66 public static BTRole get(
final byte value) {
68 case (
byte)0x01:
return Master;
69 case (
byte)0x02:
return Slave;
Bluetooth roles from the perspective of the link layer (connection initiator).
Master
Master or central role, discovering remote devices and initiating connection.
Slave
Slave or peripheral role, advertising and waiting for connections to accept.
final BTRole reverse()
Returns reversed roled.