{"id":15728639,"url":"https://github.com/eugene-software/cbcbluetooth","last_synced_at":"2026-03-07T15:34:06.172Z","repository":{"id":62457817,"uuid":"554370200","full_name":"eugene-software/CBCBluetooth","owner":"eugene-software","description":"Convenient Combine wrapper for CoreBluetooth ","archived":false,"fork":false,"pushed_at":"2025-02-03T14:05:23.000Z","size":87,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-20T23:32:31.741Z","etag":null,"topics":["ble","bluetooth","combine","corebluetooth","ios","macos","reactive","swift","watchos"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eugene-software.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-10-19T17:44:33.000Z","updated_at":"2025-04-09T02:17:28.000Z","dependencies_parsed_at":"2024-10-24T21:22:17.432Z","dependency_job_id":"43b25095-5161-4625-91bc-c9a8e1cc5fbc","html_url":"https://github.com/eugene-software/CBCBluetooth","commit_stats":{"total_commits":22,"total_committers":2,"mean_commits":11.0,"dds":"0.13636363636363635","last_synced_commit":"0b6fb0375a7d180c4f3c1efb1cb5fa0b4cf05286"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eugene-software%2FCBCBluetooth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eugene-software%2FCBCBluetooth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eugene-software%2FCBCBluetooth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eugene-software%2FCBCBluetooth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eugene-software","download_url":"https://codeload.github.com/eugene-software/CBCBluetooth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253924627,"owners_count":21985148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ble","bluetooth","combine","corebluetooth","ios","macos","reactive","swift","watchos"],"created_at":"2024-10-03T23:05:08.713Z","updated_at":"2026-03-07T15:34:06.138Z","avatar_url":"https://github.com/eugene-software.png","language":"Swift","readme":"# CBCBluetooth\n\n[![Version](https://img.shields.io/cocoapods/v/CBCBluetooth.svg?style=flat-square)](https://cocoapods.org/pods/CBCBluetooth)\n[![License](https://img.shields.io/cocoapods/l/CBCBluetooth.svg?style=flat-square)](https://cocoapods.org/pods/CBCBluetooth)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Feugene-software%2FCBCBluetooth%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/eugene-software/CBCBluetooth)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Feugene-software%2FCBCBluetooth%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/eugene-software/CBCBluetooth)\n\n## Requirements \n\n- iOS 13 and above\n\n## Usage Example\n\nImport dependenices:\n\n```swift\nimport Combine\nimport CoreBluetooth\nimport CBCBluetooth\n```\n\n- Scanning and receiving single value from public services:\n\n```swift\n\nlet manager = CBCCentralManagerFactory.create()\n\nlet service = \"SOME-SERVICE-UUID-STRING\"\nlet characteristic = \"SOME-CHARACTERISTIC-UUID-STRING\"\n\nmanager.startScan(with: [service])\n    .flatMap {\n        $0.discoverServices(with: [service])\n    }\n    .flatMap {\n        $0.discoverCharacteristics(with: [characteristic])\n    }\n    .flatMap {\n        $0.readValue()\n    }\n    .sink { completion in\n        print(completion)\n    } receiveValue: { response in\n        print(response.data)\n    }\n    .store(in: \u0026cancellables)\n```\n\n- Connecting to particular peripheral by UUID:\n\n```swift\nlet manager = CBCCentralManagerFactory.create()\nlet peripheralUUID = UUID(uuidString: \"SOME-PERIPHERAL-UUID-STRING\")!\n\nmanager.getPeripherals(with: [peripheralUUID])\n    .first()\n    .flatMap {\n        $0.connect()\n    }\n    .sink { completion in\n        print(completion)\n    } receiveValue: { peripheral in\n        print(peripheral)\n    }\n    .store(in: \u0026cancellables)\n```\n\n- Observe RSSI:\n\n```swift\nlet manager = CBCCentralManagerFactory.create()\nlet peripheralUUID = UUID(uuidString: \"SOME-PERIPHERAL-UUID-STRING\")!\n\nmanager.getPeripherals(with: [peripheralUUID])\n    .first()\n    .flatMap {\n        $0.connect()\n    }\n    .flatMap {\n        $0.observeRSSI()\n    }\n    .sink { completion in\n        print(completion)\n    } receiveValue: { rssi in\n        print(rssi)\n    }\n    .store(in: \u0026cancellables)\n```\n\n## Installation\n\n### Cocoapods\nCBCBluetooth is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'CBCBluetooth'\n```\n\n### Swift Package Manager\n1. Right click in the Project Navigator\n2. Select \"Add Packages...\"\n3. Search for ```https://github.com/eugene-software/CBCBluetooth.git```\n\n## Author\n\nEugene Software\n\n## License\n\nCBCBluetooth is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feugene-software%2Fcbcbluetooth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feugene-software%2Fcbcbluetooth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feugene-software%2Fcbcbluetooth/lists"}