Set if the device is connectable after advertising, defaults to true.
BLE.setConnectable(connectable)
Nothing.
// begin initialization
if (!BLE.begin()) {
Serial.println("starting Bluetooth® Low Energy module failed!");
while (1);
}
// ...
BLE.setConnectable(false); // make the device unconnectable when advertising