Latest 0.3.0
License MIT
Platforms ios 10.0, requires ARC
Frameworks Foundation


Integrate in your project

use cocoapods:

pod 'RYBle'

or carthage:

github "sudotamm/RYBle"

How to use

  1. Initial ble central manager
      RYBleManager.sharedManager.bleInit(completion: nil) { state in
            print( state.description)
            // Deal with ble error status
  1. Scan ble devices
            RYBleManager.sharedManager.scan(services: services, discoverBlock: { discoverys in
                // Callback when device discovered
            }, completionBlock: {
                // Callback when scan process stoped
            }, errorBlock: { state in
                // Callback when error occurred in scan service and character progress
  1. Connect with ble device and received updated value from characters.
        RYBleManager.sharedManager.connect(peripheral: peripheral, connected: {
                // Callback when device connect succeed
        }, updateValue: { character in
                // Callback when character value updated
        }) { bleError in
                // Callback when error occurred in connect and update character process


Clone or download this repository and then open *.xcworkspace file when pod dependencies installed.

Latest podspec

    "name": "RYBle",
    "version": "0.3.0",
    "summary": "Simplified ble central manager base on CoreBluetooth.",
    "description": "Replace start, scan, connect and update value delegate callback with block to simplify central manager use.",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "sudotamm": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.3.0"
    "platforms": {
        "ios": "10.0"
    "requires_arc": true,
    "source_files": "RYBle/*.{swift}",
    "frameworks": "Foundation"

Pin It on Pinterest

Share This