puck-central-android | Puck Central is the name of the Android app | Android library

 by   NordicPlayground Java Version: Current License: Apache-2.0

kandi X-RAY | puck-central-android Summary

kandi X-RAY | puck-central-android Summary

puck-central-android is a Java library typically used in Mobile, Android applications. puck-central-android has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. However puck-central-android build file is not available. You can download it from GitHub.

Puck Central is the name of the Android app.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              puck-central-android has a low active ecosystem.
              It has 86 star(s) with 41 fork(s). There are 22 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 2 open issues and 1 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of puck-central-android is current.

            kandi-Quality Quality

              puck-central-android has no bugs reported.

            kandi-Security Security

              puck-central-android has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              puck-central-android 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

              puck-central-android releases are not available. You will need to build from source code and install.
              puck-central-android has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed puck-central-android and discovered the below as its top functions. This is intended to give you an instant insight into puck-central-android implemented functionality, and help decide if they suit your requirements.
            • On IBeacons connect
            • Update the location of IBeacons
            • Connects to the cube and connects it
            • Updates the location of a beacon
            • Write integer array
            • Cancels the current operation bundle
            • Convert a string number to a byte array
            • Drive the Gatt operation
            • Binds to a player
            • Called when a Bluetooth device is pressed
            • Generate a hash code
            • Remove a rule
            • Instantiates an action
            • Creates the pickers
            • Convert a string to a UUID
            • This method is called when a menu item is clicked
            • Handles a stick event
            • Enable or disable a characteristic
            • Handles a device
            • Bind the trigger
            • Display an actuator dialog
            • Returns an alert dialog
            • Create a list of actuators
            • Create an alert dialog
            • Called when a new zone is discovered
            • Returns the action dialog
            Get all kandi verified functions for this library.

            puck-central-android Key Features

            No Key Features are available at this moment for puck-central-android.

            puck-central-android Examples and Code Snippets

            No Code Snippets are available at this moment for puck-central-android.

            Community Discussions

            QUESTION

            BLE: obtaining BluetoothDevice via BluetoothAdapter#getRemoteDevice() vs scanning
            Asked 2018-Apr-29 at 08:56
            Scenario:

            Given, a device which is always turned on, and does a Bluetooth Low Energy advertising every second.
            I have to implement an application for Android tablets which connects to this device via Bluetooth Low Energy, sends some commands and then disconnects from it.
            Minimum Android version: the one which works best, I'm free to decide. I started with API 21 (Android 5.0, Lollipop)

            Issue:

            The issues the BLE stack has, caused trouble also for me: I'd like to issue a successful direct connection using the object retrieved by BluetoothAdapter#getRemoteDevice(MACAddress: String) method, and it always fails.

            Results of my research:

            Below are the questions / answers / posts that I've found and seems useful (maybe these will help someone):

            Questions:

            Beside these, I looked into the BluetoothDevice's source code, and I've found out that the Context parameter of the connectGatt() method is not used at all:
            https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/bluetooth/BluetoothDevice.java#1899
            Wondering if can this be one of the reasons of the flaws the BLE stack has?

            Also, I don't understand what is the difference between a BluetoothDevice object retrieved by the scanner vs the one retrieved by BluetoothAdapter#getRemoteDevice(MACAddress: String) method.
            If I issue a direct connection (autoconnect parameter is set to false when calling connectGatt()) on the device got via scanning, the connection usually succeeds. But, a direct connection always fails (status = 133, timeout) when using the object retrieved by getRemoteDevice().

            As the device I want to connect to advertises itself every second, I expect the direct connection to always / most of the time work, like in the case of scanning.
            Because the background connection (autoconnect parameter set to true) is very slow, I cannot rely on that.
            Also, because the scanning is unreliable and slow, I cannot force the user to wait every time the application starts.

            To summarize my questions:
            • The Context parameter of the connectGatt() method is not used at all - can this be one of the reasons of the flaws the BLE stack has? I suppose someone put it there for a good reason.
            • What is the difference between a BluetoothDevice object retrieved by the scanner vs the one retrieved by BluetoothAdapter#getRemoteDevice(MACAddress: String) method?
            ...

            ANSWER

            Answered 2018-Apr-29 at 08:56
            1. The context parameter was used in earlier Android versions but apparently wasn't needed anymore. You should still pass a valid context to be compatible with earlier versions, or newer if they decide to make use of it again.

            2. There shouldn't be any difference. But if you just connect by Bluetooth Device address, you will notice the flaw in the API that you cannot pass the address type (public or random). So if you try to connect to a static random address, that will probably fail unless you have first scanned the device. This is because Android keeps a cache of a addresses and which address type it had in the latest advertisement. So try to first scan and make sure you see the device you want to connect to. Then try to connect using BluetoothAdapter#getRemoteDevice(MACAddress: String).

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install puck-central-android

            You can download it from GitHub.
            You can use puck-central-android like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the puck-central-android component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            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
            CLONE
          • HTTPS

            https://github.com/NordicPlayground/puck-central-android.git

          • CLI

            gh repo clone NordicPlayground/puck-central-android

          • sshUrl

            git@github.com:NordicPlayground/puck-central-android.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