pygatt | Python wrapper for gatttool

 by   peplin Python Version: 4.0.5 License: Non-SPDX

kandi X-RAY | pygatt Summary

kandi X-RAY | pygatt Summary

pygatt is a Python library typically used in Networking applications. pygatt has no bugs, it has no vulnerabilities, it has build file available and it has low support. However pygatt has a Non-SPDX License. You can install using 'pip install pygatt' or download it from GitHub, PyPI.

Python wrapper for gatttool (a deprecated tool from BlueZ) and the BGAPI for accessing Bluetooth LE Devices
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              pygatt has a low active ecosystem.
              It has 446 star(s) with 173 fork(s). There are 27 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 13 open issues and 152 have been closed. On average issues are closed in 408 days. There are 3 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of pygatt is 4.0.5

            kandi-Quality Quality

              pygatt has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              pygatt has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              pygatt releases are not available. You will need to build from source code and install.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              pygatt saves you 1683 person hours of effort in developing the same functionality from scratch.
              It has 3791 lines of code, 342 functions and 32 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed pygatt and discovered the below as its top functions. This is intended to give you an instant insight into pygatt implemented functionality, and help decide if they suit your requirements.
            • Establish a new gap connection
            • Expect one or more packets
            • Decode a packet or response packet
            • Return True if flags are set False otherwise
            • Scan the BLE device
            • Kill the BLE device
            • Wait for an event
            • Perform a gap scan
            • Batch find information found in BLE device
            • Add a descriptor to the registry
            • Subscribe to a callback
            • Process a BGE scan response
            • Clear existing bonds
            • Write a value to a character
            • Subscribe to a characteristic
            • Write bytes to a device
            • Performs an attribute write
            • Unsubscribe from a characteristic
            • Logs a connection status flag
            • Run the event loop
            • Discover characteristics for a connection
            • Bonds to the device
            • Discover the characteristics of the device
            • Connect to GATTTool
            • Receive incoming packets
            • Reconnect to the device
            Get all kandi verified functions for this library.

            pygatt Key Features

            No Key Features are available at this moment for pygatt.

            pygatt Examples and Code Snippets

            No Code Snippets are available at this moment for pygatt.

            Community Discussions

            QUESTION

            Xlwings + Pygatt: Storing object from Pygatt into Excel VBA
            Asked 2020-Jun-15 at 16:44

            I am able to send-receive data between VBA code and Python UDF using xlwings.

            I am using Pygatt in the Python UDF to communicate with BLE devices.

            I am storing information in one of the sheets in Excel and accessing it in Python UDF as required.

            My problem is, i am unable to store the value of adapter and use in another UDF:-

            ...

            ANSWER

            Answered 2020-Jun-15 at 16:44

            I used global variable and shared it among the Python UDFs.

            I moved ahead with this solution.

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

            QUESTION

            How to Mimic nRF Connect (for Android) Actions to Pygatt Script?
            Asked 2020-Mar-31 at 13:34

            I'm using nRF Connect for Android to test a BLE peripheral. The peripheral is a BSX Insight residual muscle oxygen monitor whose software application is no longer functional or supported by the manufacturer. Thus, my only option to use my device (BSX) is to write my own control software. I've written a Python 3.7 script that I run within a tkinter routine on my 64-bit Win 10 laptop. Also, I'm using the Pygatt library and a BLED112 BT dongle.

            I can connect to the peripheral, read and write values just fine to characteristics, but I'm sure that the "conversion" from the process used in nRF Connect and to my script is incomplete and inefficient. So the first thing I'd like to confirm is that the correct respective functions from Pygatt are used. Once I'm using the correct functions from Pygatt, then I can compare respective outputs for the two data (characteristic values) streams that I want to capture and store.

            The basic process in nRF Connect:
            1. scan
            2. select/connect the BSX Insight
            3. expose the service and characteristics of interest
            4. enable CCCDs
            5. write the "start data" values (04-02)

            These are the process command results from the nRF Connect log file. Starting with number four:
            4.
            D 09:04:54.491 gatt.setCharacteristicNotification(00002a37-0000-1000-8000-00805f9b34fb, true) 11
            D 09:04:54.496 gatt.setCharacteristicNotification(2e4ee00b-d9f0-5490-ff4b-d17374c433ef, true) 20x
            D 09:04:54.499 gatt.setCharacteristicNotification(2e4ee00d-d9f0-5490-ff4b-d17374c433ef, true) 25x
            D 09:04:54.516 gatt.setCharacteristicNotification(2e4ee00e-d9f0-5490-ff4b-d17374c433ef, true) 32x
            D 09:04:54.519 gatt.setCharacteristicNotification(00002a63-0000-1000-8000-00805f9b34fb, true) 36
            D 09:04:54.523 gatt.setCharacteristicNotification(00002a53-0000-1000-8000-00805f9b34fb, true) 40

            The above resulted from using the nRF command "Enable CCCDs." Basically every characteristic that could be enabled was enabled which is fine. The 'x' are the three that I need enabled. The others are extra. Note, I've annotated the respective handles for these UUIDs on the end of the line.

            1. V 09:05:39.211 Writing command to characteristic 2e4ee00a-d9f0-5490-ff4b-d17374c433ef
              D 09:05:39.211 gatt.writeCharacteristic(2e4ee00a-d9f0-5490-ff4b-d17374c433ef, value=0x0402)
              I 09:05:39.214 Data written to 2e4ee00a-d9f0-5490-ff4b-d17374c433ef, value: (0x) 04-02
              A 09:05:39.214 "(0x) 04-02" sent

            Number five is where I write 0402 to the UUID above. This action sends the data/value streams from:

            • 2e4ee00d-d9f0-5490-ff4b-d17374c433ef, with a descriptor handle 26
            • 2e4ee00e-d9f0-5490-ff4b-d17374c433ef, with a descriptor handle 33

            Once I've done the basic steps above in nRF Connect, the two characteristic value streams become active, and I can immediately see the converted values in my Garmin Edge 810 head unit.

            So attempting to duplicate the same process within my tkinter snippet:

            ...

            ANSWER

            Answered 2020-Mar-31 at 13:34

            I've answered my questions. I now have to solve the new problem of why my tKinter dialog is "not responding" as a separate issue. Thanks All Edit 3/31/2020: I re-wrote the script using pyQt and now have a functional app.

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

            QUESTION

            Can't get ObjectProperty to work with Kivy in python
            Asked 2020-Mar-30 at 03:01

            I've been trying to fine a solution for a while. I rather not create the button in python, as I'm trying to keep the style away from the functionality. It reports this error every time I try to use Object Property. I've scoured all over trying a bunch of solutions on stackoverflow, so I'm hoping someone can help me out.

            ...

            ANSWER

            Answered 2020-Mar-30 at 03:01

            A property should not and cannot be declared within a method of the class but at the same level of a method, something like:

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

            QUESTION

            Cannot read/write to characteristics in BLE
            Asked 2020-Mar-26 at 07:36

            I have a BLED112 dongle and a BLE device which contains a GATT profile with Services-Characteristics. I have installed pygatt to communicate with my BLE device.

            Following is my python code to connect to my BLE device and read/write to a characteristic:-

            ...

            ANSWER

            Answered 2020-Mar-26 at 07:36

            I finally got it by changing the characteristic UUID to the characteristic handle. Following is the working code:-

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

            QUESTION

            Python code to connect to BLE module using BLED112 dongle and read/ write to GATT services-characteristics
            Asked 2020-Mar-20 at 12:59

            I have a BLED112 dongle and a BLE device. My BLE device has one service and two characteristics. I need to develop a python script which uses the BLED112 to scan for nearby BLE devices and connect to my BLE device. Then i need to find the Service-Characteristics and read-write to them.

            I found support for BGAPI and PYGATT in github, but they seem very complicated.

            Please help me with a simple example to achieve my task.

            Thanks a lot in advance.

            ...

            ANSWER

            Answered 2020-Mar-20 at 12:59

            I was able to add a textbox and button to get the comport and scan for the nearby devices Following is my code:-

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install pygatt

            You can install using 'pip install pygatt' or download it from GitHub, PyPI.
            You can use pygatt like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            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
          • PyPI

            pip install pygatt

          • CLONE
          • HTTPS

            https://github.com/peplin/pygatt.git

          • CLI

            gh repo clone peplin/pygatt

          • sshUrl

            git@github.com:peplin/pygatt.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 Python Libraries

            public-apis

            by public-apis

            system-design-primer

            by donnemartin

            Python

            by TheAlgorithms

            Python-100-Days

            by jackfrued

            youtube-dl

            by ytdl-org

            Try Top Libraries by peplin

            gpxviewer

            by peplinJavaScript

            astral

            by peplinPython

            arduino.mk

            by peplinShell