{"id":18465970,"url":"https://github.com/mybigday/react-native-multi-ble-peripheral","last_synced_at":"2026-03-09T14:06:23.548Z","repository":{"id":156327239,"uuid":"632382183","full_name":"mybigday/react-native-multi-ble-peripheral","owner":"mybigday","description":"Multiple BLE Peripheral Manager on React Native","archived":false,"fork":false,"pushed_at":"2025-11-25T10:52:04.000Z","size":499,"stargazers_count":11,"open_issues_count":2,"forks_count":6,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-11-28T15:41:37.922Z","etag":null,"topics":["beacon","ble","bluetooth","bluetooth-low-energy","peripherals","react-native"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/mybigday.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-04-25T09:41:26.000Z","updated_at":"2025-11-25T10:52:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"4fcffb74-1ca0-41f4-b906-86a5a044fd5a","html_url":"https://github.com/mybigday/react-native-multi-ble-peripheral","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/mybigday/react-native-multi-ble-peripheral","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybigday%2Freact-native-multi-ble-peripheral","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybigday%2Freact-native-multi-ble-peripheral/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybigday%2Freact-native-multi-ble-peripheral/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybigday%2Freact-native-multi-ble-peripheral/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mybigday","download_url":"https://codeload.github.com/mybigday/react-native-multi-ble-peripheral/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybigday%2Freact-native-multi-ble-peripheral/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30297916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T13:46:43.843Z","status":"ssl_error","status_checked_at":"2026-03-09T13:46:42.821Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["beacon","ble","bluetooth","bluetooth-low-energy","peripherals","react-native"],"created_at":"2024-11-06T09:14:41.640Z","updated_at":"2026-03-09T14:06:23.451Z","avatar_url":"https://github.com/mybigday.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-multi-ble-peripheral\n\nReact Native Multi BLE Peripheral Manager\n\n## Installation\n\n```sh\nnpm install react-native-multi-ble-peripheral\n```\n\n### iOS\n\nAdd these lines in `Info.plist`\n\n```xml\n\u003ckey\u003eNSBluetoothAlwaysUsageDescription\u003c/key\u003e\n\u003cstring\u003eFor advertise as BLE peripheral\u003c/string\u003e\n```\n\n### Android\n\n- Add these lines in `AndroidManifest.xml`\n\n```xml\n\u003cuses-permission android:name=\"android.permission.BLUETOOTH\" /\u003e\n\u003cuses-permission android:name=\"android.permission.BLUETOOTH_ADVERTISE\" /\u003e\n\u003cuses-permission android:name=\"android.permission.BLUETOOTH_CONNECT\" /\u003e\n```\n\n- Do this patch if you build on SDK 33+\n\n```diff\ndiff --git a/android/src/main/java/com/fugood/reactnativemultibleperipheral/ReactNativeMultiBlePeripheralModule.kt b/android/src/main/java/com/fugood/reactnativemultibleperipheral/ReactNativeMultiBlePeripheralModule.kt\nindex 2e763af..746c0c7 100644\n--- a/android/src/main/java/com/fugood/reactnativemultibleperipheral/ReactNativeMultiBlePeripheralModule.kt\n+++ b/android/src/main/java/com/fugood/reactnativemultibleperipheral/ReactNativeMultiBlePeripheralModule.kt\n@@ -241,7 +241,8 @@ class ReactNativeMultiBlePeripheralModule(reactContext: ReactApplicationContext)\n       val response = bluetoothGattServer.notifyCharacteristicChanged(\n         device,\n         characteristic,\n-        confirm\n+        confirm,\n+        value\n       )\n       Log.d(NAME, \"Notify ${device.name} (${device.address}) response = $response\")\n     }\n```\n\n#### Request permission\n\n\u003e Should check permission before create peripheral instance\n\n```js\nimport { PermissionsAndroid } from 'react-native';\n\nawait PermissionsAndroid.request(\n  PermissionsAndroid.PERMISSIONS.BLUETOOTH_CONNECT,\n  options,\n);\nawait PermissionsAndroid.request(\n  PermissionsAndroid.PERMISSIONS.BLUETOOTH_ADVERTISE,\n  options,\n);\n```\n\n## Usage\n\n```js\nimport Peripheral, { Permission, Property } from 'react-native-multi-ble-peripheral';\nimport { Buffer } from 'buffer';\n\nPeripheral.setDeviceName('MyDevice');\n\nconst peripheral = new Peripheral();\n\n// We need wait peripheral manager ready before any operation.\nperipheral.on('ready', async () =\u003e {\n  await peripheral.addService('1234', true);\n  await peripheral.addCharacteristic(\n    '1234',\n    'ABCD',\n    Property.READ | Property.WRITE,\n    Permission.READABLE | Permission.WRITEABLE\n  );\n  await peripheral.updateValue('1234', 'ABCD', Buffer.from('Hello World!'));\n  await peripheral.startAdvertising();\n});\n```\n\n## Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## License\n\nMIT\n\n---\n\nMade with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://bricks.tools\"\u003e\n    \u003cimg width=\"90px\" src=\"https://avatars.githubusercontent.com/u/17320237?s=200\u0026v=4\"\u003e\n  \u003c/a\u003e\n  \u003cp align=\"center\"\u003e\n    Built and maintained by \u003ca href=\"https://bricks.tools\"\u003eBRICKS\u003c/a\u003e.\n  \u003c/p\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmybigday%2Freact-native-multi-ble-peripheral","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmybigday%2Freact-native-multi-ble-peripheral","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmybigday%2Freact-native-multi-ble-peripheral/lists"}