24package trial.org.direct_bt;
26import org.direct_bt.BTAdapter;
27import org.direct_bt.BTRole;
28import org.direct_bt.BTSecurityLevel;
29import org.direct_bt.HCIStatusCode;
30import org.junit.Assert;
40 Assert.assertEquals(current_exp_advertising_state, adapter.
isAdvertising());
Bluetooth roles from the perspective of the link layer (connection initiator).
Slave
Slave or peripheral role, advertising and waiting for connections to accept.
Bluetooth Security Level.
BT Core Spec v5.2: Vol 1, Part F Controller Error Codes: 1.3 List of Error Codes.
BTAdapter represents one local Bluetooth Controller.
String getName()
Returns the name.
boolean isAdvertising()
Returns the adapter's current advertising state.
boolean isDiscovering()
Returns true if the meta discovering state is not ScanType#NONE.
BTRole getRole()
Return the current BTRole of this adapter.
String getName()
Return name of this endpoint, which becomes the adapter's name.
void close(final String msg)
BTAdapter getAdapter()
Return the adapter for this endpoint.
BTSecurityLevel getSecurityLevel()
static void startAdvertising(final DBTServerTest server, final boolean current_exp_advertising_state, final String msg)
HCIStatusCode startAdvertising(String msg)
static void stop(final DBTServerTest server, final String msg)