React Native library for setting up BLE devices.
The best way to see how this library is used is to check out the react-native-ble-setup-example package.
npm install @particle/react-native-ble-setup-library --saveReact Context containing the BLE setup process
Kind: global constant
Ensures that all OS permissions have been granted to the app. It will trigger a dialog asking to allow precise location (this is required for the BLE) if the user hasn't approve it before.
Kind: global constant
Returns: Promise.<boolean> - true if the permissions were granted
Hook for using the SetupContext
Kind: global constant
Returns: SetupContextType - Setup context
Decode base64 string into a string
Kind: global function
Returns: string - Decoded string
| Param | Type | Description |
|---|---|---|
| input | string |
Base64 encoded input |
Decode base64 string into a number
Kind: global function
Returns: number - Decoded number
| Param | Type | Description |
|---|---|---|
| input | string |
Base64 encoded input |
NOTE: Unfortunately, docs have a nasty habit of falling out of date. When in doubt, check usage in tests
Copyright © 2022 Particle Industries, Inc. Released under the Apache 2.0 license. See LICENSE for details.