25package trial.org.direct_bt;
27import org.direct_bt.BTMode;
28import org.direct_bt.BTSecurityLevel;
29import org.direct_bt.DiscoveryPolicy;
30import org.jau.net.EUI48;
31import org.junit.FixMethodOrder;
33import org.junit.runners.MethodSorters;
47@FixMethodOrder(MethodSorters.NAME_ASCENDING)
49 static final boolean serverSC =
true;
51 @Test(timeout = 20000)
52 public final
void test40_ClientReset01() {
53 final String suffix =
"40";
54 final int protocolSessionCount = 1;
56 final boolean expSuccess =
true;
57 final boolean server_client_order =
true;
73 set_client_reset_at_ready(
true);
75 test8x_fullCycle(20000, suffix,
76 max_connections_per_session, expSuccess, server_client_order,
77 server, secLevelServer, serverExpPairing,
78 client, secLevelClient, clientExpPairing);
81 public static void main(
final String args[]) {
This central BTRole::Master participant works with DBTServer00.
Testing a full Bluetooth server and client lifecycle of operations, requiring two BT adapter:
static final int max_connections_per_session
This peripheral BTRole::Slave test participant works with DBTClient00.
Testing a full Bluetooth server and client lifecycle of operations including adapter reset,...
static void main(final String args[])
Bluetooth adapter operating mode.
DUAL
Dual Bluetooth mode, i.e.
Bluetooth Security Level.
NONE
No encryption and no authentication.
Discovery policy defines the BTAdapter discovery mode after connecting a remote BTDevice:
PAUSE_CONNECTED_UNTIL_DISCONNECTED
Pause discovery until all connected BTDevice become disconnected, effectively until AdapterStatusList...
void setDisconnectDeviceed(final boolean v)
Set disconnect after processing.
void setRemoveDevice(final boolean v)
Set remove device when disconnecting.
void setDiscoveryPolicy(final DiscoveryPolicy v)
Set DiscoveryPolicy.
void setProtocolSessionsLeft(final int v)