react-native-ble-manager | React Native BLE communication module

 by   innoveit Java Version: 11.5.1 License: Apache-2.0

kandi X-RAY | react-native-ble-manager Summary

kandi X-RAY | react-native-ble-manager Summary

react-native-ble-manager is a Java library typically used in Networking, React Native applications. react-native-ble-manager has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. However react-native-ble-manager build file is not available. You can install using 'npm i zh-react-native-ble-manager' or download it from GitHub, npm.

React Native BLE communication module
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              react-native-ble-manager has a medium active ecosystem.
              It has 1758 star(s) with 688 fork(s). There are 44 watchers for this library.
              There were 9 major release(s) in the last 6 months.
              There are 107 open issues and 657 have been closed. On average issues are closed in 70 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of react-native-ble-manager is 11.5.1

            kandi-Quality Quality

              react-native-ble-manager has 0 bugs and 0 code smells.

            kandi-Security Security

              react-native-ble-manager has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              react-native-ble-manager code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              react-native-ble-manager is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              react-native-ble-manager releases are available to install and integrate.
              Deployable package is available in npm.
              react-native-ble-manager has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions, examples and code snippets are available.
              It has 2259 lines of code, 129 functions and 25 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed react-native-ble-manager and discovered the below as its top functions. This is intended to give you an instant insight into react-native-ble-manager implemented functionality, and help decide if they suit your requirements.
            • Handle a connection state change
            • Send connection event
            • Disconnect the GATT
            • Gets connected peripheral devices
            • Returns the singleton peripheral
            • Read a device from a device
            • Request a read characteristic
            • Called when a descriptor has been written
            • Enable or disable bluetooth
            • Gets the connected peripherals
            • Handles a characteristic read
            • Scans a beacon for bluetooth devices
            • Remove a bond to a peripheral
            • Stop scan
            • Writes a message to the device
            • Start scan manager
            • Performs a scan
            • Checks the Bluetooth state of the BluetoothAdapter
            • Called when a characteristic has changed
            • Initialize Fluo
            • Returns a writable map representing the advertising data
            • Create a bond for a peripheral uuid
            • Handles a characteristic write
            • Performs a little scan on the Bluetooth device
            Get all kandi verified functions for this library.

            react-native-ble-manager Key Features

            No Key Features are available at this moment for react-native-ble-manager.

            react-native-ble-manager Examples and Code Snippets

            No Code Snippets are available at this moment for react-native-ble-manager.

            Community Discussions

            QUESTION

            react-native "Export statement may only appear at top level" was working fine until cleaning project how do I find out the issue?
            Asked 2022-Feb-09 at 06:34

            I'm only seeing mention of changes in babelrc etc. online for this message. I've tried to remove the dependency that gives me this error and it appears that then next dependency evaluated returns the same message.

            The error is coming from any/all of my node_modules folder and the code is correct. I'm guessing something has changed w/ versions of something in my dev dependencies but not sure how to track it down...

            I'm using RN 61.5 old I know but this is a production env and can't update atm. Any help on where to look to find the issue please?

            ...

            ANSWER

            Answered 2022-Feb-09 at 06:34

            we decided to take the big plunge. upgrade the project from rn 61.5 to 67! it only took 2 days ;) wish we would have started there...

            Source https://stackoverflow.com/questions/70717057

            QUESTION

            How to check if any bluetooth device is connected in react native
            Asked 2022-Jan-13 at 06:08

            I've been attempting to detect whether a bluetooth device is connected to an android phone once a button is clicked. If detected, I would like to interact with this device from within my app. The device I'm talking about is http://www.senanetworks.com/sd1000-01.html .

            I've used the example code of https://www.npmjs.com/package/react-native-ble-manager to test it out, but unfortunately, it's not picking up this device even though the regular settings app does. Additionally, checking for already connected peripherals does not work if I connected to the device outside of the app. Any tips on how to do this?

            ...

            ANSWER

            Answered 2022-Jan-13 at 06:08

            The device you are using, the Parani-SD1000 Bluetooth Serial Adapter, does state in its specs that it uses Bluetooth 2.0. You are using a library for Bluetooth Low Energy devices, but BLE was only introduced with Bluetooth 4.0.

            Your devices definitely uses Bluetooth Classic (also nown as Bluetooth Serial), thats also the reason why it shows up in the settings of your mobile phone. You need to use a library like react-native-bluetooth-serial. You can use the isConnected() method to detect wether or not it is connected.

            Source https://stackoverflow.com/questions/70691152

            QUESTION

            react-native-ble-manager is not showing Mobile Bluetooth and BLUETOOTH EARPHONES
            Asked 2021-Jun-22 at 22:00

            I am trying to implement the Bluetooth service my application. But when scanning is staring my apps to that time not showing Mobile Bluetooth and BLUETOOTH EARPHONES Bluetooth.

            Only show without name Bluetooth in console.

            Please help this issues.

            ...

            ANSWER

            Answered 2021-Jun-22 at 07:34

            The react-native-ble-manager enables communication between your phone and Bluetooth Low Energy (BLE) devices. BLE devices need to advertise their presence to be detected. Keep in mind that BLE is not the same as Bluetooth Classic.

            You can only detect BLE devices using react-native-ble-manager. If you can't find your devices they simply might not be BLE devices but rather Bluetooth Classic devices. Other mobile phones usually do not advertise BLE services and need an app to do so. Bluetooth Headphones might use BLE for some features, but the audio transmission is handled with Bluetooth Classic.

            You can use a generic BLE scanner app such as nRF Connect to scan for BLE devices nearby. The app even allows you to start a GATT server on another phone for it to be accessible using BLE.

            Source https://stackoverflow.com/questions/68078695

            QUESTION

            Raspberry pi bluetooth not detecting on React-Native based application. (Used react-native-ble-magaer)
            Asked 2021-Mar-16 at 11:40

            I am trying to get the Raspberry pi Bluetooth signal or the peripheral device characteristic on my React-Native application. I am using react-native-ble-manager to scan and detect the peripheral devices. So far I got most of the devices like TV, Smart-Bands etc. But not getting the raspberry signal.

            I did confirm if the network is enabled and visible to my mobile from the device(Mobile) Bluetooth Manager. Everything seems to be fine. I am using a realme XT handset for this application. I have also checked on different handsets and even those had the same problem. So, I think it's the problem of the component and not the mobile.

            If there is a different approach with different package, even that approach is fine for me. Can someone help me on this!!.

            Thank You!!

            ...

            ANSWER

            Answered 2021-Mar-16 at 11:40

            Like mentioned in the comments Raspberry Pi doesn't have a BLE service as default or maybe my code to enable the Bluetooth service doesn't have BLE.

            My solution for this was using a different package. I replaced react-native-ble-manager to react-native-bluetooth-serial-next and walaaa!!.

            Everything is working fine!!

            Source https://stackoverflow.com/questions/66651115

            QUESTION

            Not seeing always allow in android location permission
            Asked 2021-Mar-02 at 16:39

            I have been trying to use an react native ble librairie (react-native-ble-manager). In order to use this the user have to allow location permission (as explain in the documentation android.permission.ACCESS_COARSE_LOCATION and android.permission.ACCESS_FINE_LOCATION if android API >= 29. I request the autorisation as their example with: (PermissionsAndroid is from the react-native librairie) :

            ...

            ANSWER

            Answered 2021-Mar-02 at 16:39

            For those having the same issue : my phone has android 11 so it can't be directly requested in the pop-up. You have to indicate to your user how to change the permission Source : https://developer.android.com/training/location/permissions

            Source https://stackoverflow.com/questions/65632727

            QUESTION

            We in our team have two Android 10 devices, none of them can detect devices on them using react-native-ble-manager
            Asked 2020-Dec-01 at 05:28

            We in our team have two Android 10 devices, none of them can detect devices on them using react-native-ble-manager.

            There is no changing in the code from the Git ReadMe. Code is working on <= Android 8 devices.

            Package.json:

            ...

            ANSWER

            Answered 2020-Dec-01 at 05:28

            I believe they have fixed the problem. They have closed the issue:

            This post on GitHub is closed with latest commits to library

            Source https://stackoverflow.com/questions/64152430

            QUESTION

            BLE Connection failure : Connection is refused due to unacceptable BD_ADDR
            Asked 2020-Nov-24 at 20:00

            My setup is as follows:

            1. BLE Peripheral in Raspberry Pi 3
            2. nRF tool in Android Phone
            3. My App in the same Android Phone (uses react-native-ble-manager)

            When I connect to the Raspberry Pi using nRF tool, it connects successfully. But, when I connect using my own Android App it fails.

            In the Raspberry Pi, I ran sudo btmon command to examine the failure log which is shown below:

            ...

            ANSWER

            Answered 2020-Nov-24 at 20:00

            Your event log shows that you're connecting using Bluetooth Classic. If you want to use BLE, use a connectGatt variant where you can select LE as transport parameter.

            Source https://stackoverflow.com/questions/64985001

            QUESTION

            Malformed calls from JS : field sizes are different
            Asked 2020-Sep-08 at 16:58

            I've gone through link : https://github.com/facebook/react-native/issues/23835#issuecomment-493007479

            But got no solution. I got the understanding that this bug is triggered when

            1. You send NaN in array on react native bridge. I don't know much about it.
            2. During use of invalid data (infinity) in animation.
            3. During bottom navigation.
            4. Using menu.
            5. Showing response data in Alert or Notifications as Toasts.

            I am using react-native-ble-manager.

            Procedure: I sent write message using characteristic that allows write, after setting notifications on for characteristic that allows read. I got 'ack' in the response listener that was used to receive notifications, and then I start sending custom data chunks by chunks as designed.

            I get this error during this first chunk was being sent.

            I've checked my uint8Array for any wrong data using iteration and to, but couldn't found any.

            From my logs:

            ...

            ANSWER

            Answered 2020-Sep-08 at 16:58

            I iterated through my uint8Array and took each of the elements in var newArr = [];

            I also did newArr[i] = newArr[i] & 0xff.

            The error was gone.

            Source https://stackoverflow.com/questions/63765222

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install react-native-ble-manager

            The library support the react native autolink feature. If you need communication while the app is not in the foreground you need the "ACCESS_BACKGROUND_LOCATION" permission. In iOS >= 13 you need to add the NSBluetoothAlwaysUsageDescription string key.

            Support

            iOS 8+Android (API 19+)
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i react-native-ble-manager

          • CLONE
          • HTTPS

            https://github.com/innoveit/react-native-ble-manager.git

          • CLI

            gh repo clone innoveit/react-native-ble-manager

          • sshUrl

            git@github.com:innoveit/react-native-ble-manager.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Java Libraries

            CS-Notes

            by CyC2018

            JavaGuide

            by Snailclimb

            LeetCodeAnimation

            by MisterBooo

            spring-boot

            by spring-projects

            Try Top Libraries by innoveit

            python-dhl-api

            by innoveitPython