updateStatus("[SERVER] Device Name: "
+ local.getFriendlyName());
updateStatus("[SERVER] Listening for Client...");
// Open a connection and wait for client requests
final L2CAPConnectionNotifier service =
(L2CAPConnectionNotifier) Connector
.open("btl2cap://localhost:" + uuid
+ ";name=" + SERVICE_NAME_L2CAP);
connection = service.acceptAndOpen();
updateStatus("[SERVER] L2CAP connection established");
// Read a message
final byte[] buffer = new byte[1024];
final int readBytes = connection.receive(buffer);