{"id":21374446,"url":"https://github.com/swaroop325/react-native-armfit-sdk","last_synced_at":"2025-07-13T09:32:00.198Z","repository":{"id":43660513,"uuid":"442505668","full_name":"swaroop325/react-native-armfit-sdk","owner":"swaroop325","description":"React Native Armfit SDK ","archived":false,"fork":false,"pushed_at":"2022-02-25T11:34:47.000Z","size":1770,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T08:01:44.475Z","etag":null,"topics":["android","ble","bluetooth","ios","react-native"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-native-armfit-sdk","language":"Java","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/swaroop325.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-28T15:30:30.000Z","updated_at":"2023-01-25T13:20:52.000Z","dependencies_parsed_at":"2022-09-04T10:40:17.620Z","dependency_job_id":null,"html_url":"https://github.com/swaroop325/react-native-armfit-sdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/swaroop325/react-native-armfit-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swaroop325%2Freact-native-armfit-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swaroop325%2Freact-native-armfit-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swaroop325%2Freact-native-armfit-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swaroop325%2Freact-native-armfit-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swaroop325","download_url":"https://codeload.github.com/swaroop325/react-native-armfit-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swaroop325%2Freact-native-armfit-sdk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265120110,"owners_count":23714488,"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":["android","ble","bluetooth","ios","react-native"],"created_at":"2024-11-22T08:42:28.050Z","updated_at":"2025-07-13T09:31:59.563Z","avatar_url":"https://github.com/swaroop325.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-armfit-sdk\n\nConnect and retrieve data from BLE devices\n(Currently support only Android)\n## Android Dependencies\n\nNeed to add the following permissions to AndroidManifest.xml file\n```xml\n      \u003cuses-permission android:name=\"android.permission.BLUETOOTH\" android:maxSdkVersion=\"30\" /\u003e\n      \u003cuses-permission android:name=\"android.permission.BLUETOOTH_ADMIN\" android:maxSdkVersion=\"30\" /\u003e\n      \u003cuses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\" android:maxSdkVersion=\"28\"/\u003e\n      \u003cuses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/\u003e\n      \u003cuses-permission android:name=\"android.permission.BLUETOOTH_SCAN\" /\u003e\n      \u003cuses-permission android:name=\"android.permission.BLUETOOTH_ADVERTISE\" /\u003e\n```\nIf you need communication while the app is not in the foreground you need the \"ACCESS_BACKGROUND_LOCATION\" permission.\n\n##### iOS - Update Info.plist\n\u003c!-- In iOS \u003e= 13 you need to add the `NSBluetoothAlwaysUsageDescription` string key.  --\u003e\n## Installation\n\n```sh\nnpm install react-native-armfit-sdk\n```\n\n## Usage\n\n```js\nimport ArmfitSdkManager from 'react-native-armfit-sdk';\nvar sdkManager = NativeModules.ArmfitSdk;\nconst sdkManagerEmitter = new NativeEventEmitter(sdkManager);\n// ...\n\n//Call this this durign the app init to invoke the sdk\nArmfitSdkManager.startSdk()\n\n//To start the scan for 5 seconds\nArmfitSdkManager.scan({})\n\n//To get info about the device\nArmfitSdkManager.getInfo()\n\n//To connect to the identified device\nArmfitSdkManager.connect(id)\n// where id -\u003e Periperal id\n\n//To retrieve the services offered by the periperal device\nArmfitSdkManager.retrieveServices(id)\n// where id -\u003e Periperal id\n\n//To get on time data from the connected BLE Device\nArmfitSdkManager.getData()\n\n//To get real time data feed from the devive connected\nArmfitSdkManager.getRealTimeData()\n\n//To get the file count and file data results stored in the connected device\nArmfitSdkManager.getFiles()\n\n\n\n// Callback handlers for various events\nsdkManagerEmitter.addListener('ArmfitSdkModuleDiscoverPeripheral',handleDiscoverPeripheral);\nsdkManagerEmitter.addListener('ArmfitSdkModuleDeviceState',handleDevicestate);\nsdkManagerEmitter.addListener('ArmfitSdkModuleStopScan', handleStopScan);\nsdkManagerEmitter.addListener('ArmfitSdkModuleResult', notifyServices);\nsdkManagerEmitter.addListener('ArmfitSdkModuleFileCountResult',fileListServices);\nsdkManagerEmitter.addListener('ArmfitSdkModuleFile', fileReadService);\n```\n\n## Supported Device\n![alt text](https://static.wixstatic.com/media/34caa4_bcab5acf4b0247dea8b3528a2da65d62~mv2.jpg/v1/crop/x_0,y_2,w_530,h_337/fill/w_422,h_268,al_c,q_90/BP2.webp)\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswaroop325%2Freact-native-armfit-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswaroop325%2Freact-native-armfit-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswaroop325%2Freact-native-armfit-sdk/lists"}