Category : bluetooth-lowenergy

using the nugget package Microsoft.Windows.SDK.Contracts and following the code example provided by Microsoft @ https://github.com/microsoft/Windows-universal-samples/tree/main/Samples/BluetoothLE I am able to enumerate the BLE devices and get the exposed GATT services, but any attempt at pairing : DevicePairingResult result = await info.Pairing.PairAsync(DevicePairingProtectionLevel.EncryptionAndAuthentication); (Tested with all of the possible protection levels) fails. Form the official documentation no pairing ..

Read more

I have successfully connected my BLE device (ESP32 board + IMU) to my windows pc using one of the two libraries below: PyGATT library (https://github.com/peplin/pygatt) Bleak library (https://github.com/hbldh/bleak) I can receive the data from the IMU using either libraries. However, I receive the data with a sampling frequency <25 Hz. Using the same code on ..

Read more

I’ve got a Smartphone App (Android, wirtten in Dart and the code is out of my reach) in Central role, sending data 0xA26176A262666F781B323032312D30392D30395431303A33323A33332E3133333932375A616E0A6E7265717565737446726F6D41707003 But my Qt-Application (RaspberryPi, Qt 5.15.3 in Peripheral role) receive only 0xa26176a262666f781b323032312d30392d313054 What do I miss? As far as i can found on the net, the data will by sliced into frame ..

Read more

Currently i am using below code to check if any ble device is present around. #include <BLEAdvertisedDevice.h> #include <BLEDevice.h> #include <BLEScan.h> const int PIN = 2; const int CUTOFF = -60; void setup() { pinMode(PIN, OUTPUT); BLEDevice::init(""); } void loop() { BLEScan *scan = BLEDevice::getScan(); scan->setActiveScan(true); BLEScanResults results = scan->start(1); int best = CUTOFF; for ..

Read more