BluetoothHelper | Bluetooth helper Java class

 by   BasicAirData Java Version: 1.0.5 License: GPL-3.0

kandi X-RAY | BluetoothHelper Summary

kandi X-RAY | BluetoothHelper Summary

BluetoothHelper is a Java library typically used in Telecommunications, Media, Telecom, Internet of Things (IoT), Arduino applications. BluetoothHelper has no bugs, it has no vulnerabilities, it has a Strong Copyleft License and it has low support. However BluetoothHelper build file is not available. You can download it from GitHub, Maven.

This Java Class implements an easy message-based Bluetooth wireless communication layer between an Android device (the client) and a Microcontroller (the server). Using this class you can Connect, Disconnect, Send String messages, Receive String messages via Listener (best way) or by explicit polling, automatically reconnect and check the status of your Bluetooth connection in a simple and thread-safe way. The library is compatible with android 4.0 (API 14) and newer. Here in this repo (in the Arduino/BluetoothHelperExample folder) you can also find a very simple example (around 100 lines of code, including comments) that shows how to use it. You can find a complete implementation of this library in BasicAirData Air Data Bridge. For further information about this library and its usage you can read this article.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              BluetoothHelper has a low active ecosystem.
              It has 12 star(s) with 11 fork(s). There are 2 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 1 open issues and 5 have been closed. On average issues are closed in 13 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of BluetoothHelper is 1.0.5

            kandi-Quality Quality

              BluetoothHelper has 0 bugs and 0 code smells.

            kandi-Security Security

              BluetoothHelper has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              BluetoothHelper code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              BluetoothHelper is licensed under the GPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              BluetoothHelper releases are available to install and integrate.
              Deployable package is available in Maven.
              BluetoothHelper 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.
              BluetoothHelper saves you 1523 person hours of effort in developing the same functionality from scratch.
              It has 3394 lines of code, 22 functions and 58 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed BluetoothHelper and discovered the below as its top functions. This is intended to give you an instant insight into BluetoothHelper implemented functionality, and help decide if they suit your requirements.
            • Initialize the remote device
            • Connects to a remote device
            • Clear out pending messages
            • Disconnects from the remote device
            • Send a message to the remote device
            • Returns the state of the connection
            • Add a new BluetoothHelper listener
            • Called when a message is received
            • Fire a listener connection state changed
            • Returns the last received message
            • Called when a button is clicked
            Get all kandi verified functions for this library.

            BluetoothHelper Key Features

            No Key Features are available at this moment for BluetoothHelper.

            BluetoothHelper Examples and Code Snippets

            No Code Snippets are available at this moment for BluetoothHelper.

            Community Discussions

            QUESTION

            Android BLE Scan Callback is not called after scanning for BLE devices
            Asked 2021-Jun-30 at 16:58

            I'm creating an Android app that scans all nearby BLE (Bluetooth Low Energy) devices using Android Studio.

            I think I have implemented all these documentations:

            1. https://developer.android.com/guide/topics/connectivity/bluetooth/ble-overview
            2. https://developer.android.com/guide/topics/connectivity/bluetooth/permissions#java
            3. https://developer.android.com/guide/topics/connectivity/bluetooth/setup#java
            4. https://developer.android.com/guide/topics/connectivity/bluetooth/find-ble-devices

            But as you can see in the log below, (the problem) there are no BLE devices scanned by the app.

            Here are the logs in the logcat:

            I think it could happen because the BLE scan callback is not called (no BLE scan callback in the log).

            So my question is what is the solution for my code? Did I miss coding something?

            Here is my code

            AndroidManifest.xml:

            ...

            ANSWER

            Answered 2021-Jun-30 at 16:58

            Finally, I have modified my code so the code now is working. Here it is:

            ScanAndPairActivity.java (I'm creating a new activity for scanning and pairing BLE devices):

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install BluetoothHelper

            Add Bluetooth permissions to your AndroidManifest.xml:
            Declare a new BluetoothHelper instance into your activity:
            Setup a BluetoothHelperListener to receive the messages and the changes of the connection status:

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

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

            Find more libraries
            Install
            Maven
            Gradle
            CLONE
          • HTTPS

            https://github.com/BasicAirData/BluetoothHelper.git

          • CLI

            gh repo clone BasicAirData/BluetoothHelper

          • sshUrl

            git@github.com:BasicAirData/BluetoothHelper.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