Questions tagged [gattlib]

9 questions
3
votes
2 answers

How to create void* pointer for kotlin native

Im trying to convert an exsisting c code to kotlin, with an native library. so far ive successfully got started but struggeling by the pointers that are used to get access to structures or objects. like this in c: void *ptr; foo(&ptr); //init is…
Basur
  • 339
  • 1
  • 14
3
votes
3 answers

Unable to install `gattlib`

I am trying to install gattlib in Python in order to use some of its Bluetooth-tools. The OS is ubuntu 18.04.4 LTS. I have by now tried the following (as e.g. here): sudo apt-get install mercurial hg clone…
Marie. P.
  • 255
  • 1
  • 4
  • 17
2
votes
2 answers

Light Weight Bluetooth LE library in C

I have been looking around for a simple Bluetooth LE library in C that allows me to scan for BLE devices, connect and receive periodic notifications from a given service UUID from the BLE device. Something that directly works with Bluetooth sockets…
1
vote
0 answers

RN4871 with Gattlib C library high latency

I am using RN4871 with the latest firmware to turn on multiple LEDs via an I2C LED driver. I use gattlib C/C++ library to communicate ("write without response") with the RN4871 through my Ubuntu (20.04) system and I measure the latency of…
Ali Nouri
  • 67
  • 7
1
vote
0 answers

Is there a conflict between Python gattlib and OpenCV?

I want to create a Python program opening webcam with OpenCV and controlling Bluetooth device with gattlib on Raspberry Pi. Here is the code: import cv2 import threading from gattlib import GATTRequester from time import sleep cap =…
yushulx
  • 11,695
  • 8
  • 37
  • 64
0
votes
1 answer

Read and notification issues with gattlib BLE?

I am writing a Linux application using the gattlib library in python3 to send and receive user inputted data between a BlueSnap DB9 BLE adapter and my Linux device. I have been able to successfully send a String of data to the adapter from my device…
spage
  • 1
  • 2
0
votes
0 answers

Using Gattlib package to Write without response to BLE device- RN4871

I am trying to control an LED via RN4871 BLE from microchip (http://ww1.microchip.com/downloads/en/DeviceDoc/50002466B.pdf) and I would like to provide brief pulses (below 10ms). For this purpose I installed gattlib package for C from…
0
votes
1 answer

Ble peripheral disconnection handler is not working in gattlib c library

I tried with different changes but I don't know why when BLE peripheral device disconnected, the central is not getting acknowledge or the handler is not calling. I have modified gattlib discover example for disconnecting handler. My code #include…
0
votes
1 answer

Can you use a GATT Configuration Service to configure Kontakt BeaconPro Eddystone-UID values?

Is it possible to write a linux application that can update the Namespace and Instance IDs on a Kontakt BeaconPro configured to broadcast Eddystone-UID Packets? I have used Gattlib to scan for Eddystone Devices and discover their services, but it…