ArduinoBLE - begin()

Initializes the BLE device.

Syntax

BLE.begin()

Parameters

None

Returns

1 on success, 0 on failure.

Example


  // begin initialization
  if (!BLE.begin()) {
    Serial.println("starting BLE failed!");

    while (1);
  }