ESPBLEStatusDelegate

protocol ESPBLEStatusDelegate

The ESPBLEStatusDelegate protocol define methods that provide information of current BLE device connection status

  • Peripheral is connected successfully.

    Declaration

    Swift

    func peripheralConnected()
  • Failed to connect with peripheral.

    Declaration

    Swift

    func peripheralFailedToConnect(peripheral: CBPeripheral?, error: Error?)

    Parameters

    peripheral

    CBPeripheral for which callback is recieved.

  • Peripheral device disconnected

    Declaration

    Swift

    func peripheralDisconnected(peripheral: CBPeripheral, error: Error?)

    Parameters

    peripheral

    CBPeripheral for which callback is recieved.

    error

    Error description