All Questions
Tagged with bluetooth-gatt java
31
questions
0
votes
1
answer
54
views
How to read Bluetooth Low Energy GAP characteristic values as a string?
Hello I am new to developing an app and even newer to the concept of BLE. I am developing an application on android using Java that is capable of scanning BLE devices nearby. The main purpose is to ...
0
votes
0
answers
24
views
Flutter: universal_ble package. Can't set notification on the bluetooth device
I have 2 apps: desktop on Flutter and mobile Java on Android. What I'm tryin to do is to connect to the Android app's GattServer and set its characteristic to notify me when its value change through ...
1
vote
0
answers
26
views
Identical phones with identical app and identical setup; one can find bluetooth devices the other cannot
I have several smartphones of the same model. Five of them I have been using for testing and building an app. Now I have to deploy the app the the other smartphones I have had laying in a drawer. ...
0
votes
0
answers
126
views
warning: [deprecation] getValue() in BluetoothGattCharacteristic has been deprecated in the code: byte[] countByte = characteristic.getValue();
I am updating my current code to API33, i got the warning- warning: [deprecation] getValue() in BluetoothGattCharacteristic has been deprecated
byte[] countByte = characteristic.getValue();
In the ...
1
vote
1
answer
490
views
Bluetooth gatt server accept connection with some validations
I am working on a Bluetooth-based application.
GATT Server and Gatt Client, The above communication is working fine, I am not having an issue with it.
The problem is I am getting a connection from an ...
0
votes
0
answers
63
views
Arduino not receiving Bluetooth GATT signal
On my android studio app, I have a button that when pressed, sends a "go" signal and on release sends a "stop" signal.
When you hold the button down and then release it works fine ...
0
votes
0
answers
48
views
Medisana BS 444 - onCharacteristicChanged never triggered
I try for my BLE Scale to write a simple app which displays my weight.
I followed the openscale guide for this, but my onCharacteristicChange method never changes. If I pass it manually with nRF ...
0
votes
1
answer
171
views
Android bluetooth scan errors
btAdapter.isDiscovering(),btAdapter.startDiscovery(); btAdapter.cancelDiscovery(); device.getName();
4four erros
Call requires permission which may be rejected by user: code should explicitly check to ...
1
vote
1
answer
669
views
Not Connecting Gatt Server
I trying to connect two android device over the Gatt Protocol.
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothGatt;
import ...
0
votes
2
answers
1k
views
I have a problem with Gatt connection between Android app(Java) and ESP32 BLE Server
I'm trying to connect my Android application to a ESP32 BLE gatt server and to receive some integer values through the characteristics of that server after being notified
However it doesn't seem to ...
0
votes
1
answer
150
views
NullPointerException on BluetoothGatt.close() when the gatt object is not null
When I try to close my GATT connection, I do the following:
BluetoothGatt gatt;
...
private void disconnectDevice() {
...
if (this.gatt != null) {
this.gatt.disconnect();
this....
7
votes
1
answer
2k
views
Battery Level of Bluetooth devices using Java
I am trying build a simple java program which shows battery status of connected Bluetooth devices in windows. see bellow sample image.
First I started with BlueCove and realized BlueCove only ...
1
vote
0
answers
508
views
Bluetooth LE Current Battery Percentage
Good day! Cant get battery percentage in percent. Ive successfully connected to GATT services, thed did this:
public override void OnServicesDiscovered(BluetoothGatt Gatt, [GeneratedEnum] GattStatus ...
0
votes
1
answer
687
views
Android Studio Wear Os application can't be installed INSTALL_PARSE_FAILED_NO_CERTIFICATES
I'm new in the the magic world of Android Studio. I'm trying to develop a simple Wear Os application to scan the near Bluetooth devices.
MainActivity.java
package com.firstapp.testble;
import android....
0
votes
0
answers
254
views
How to find the UUID or Mac address of a beacon when enter or exit a region using andriod beacon library.?
@Override
public void didExitRegion(Region region)
{
Log.d("EXITED",region.getUniqueId());
sendNotification("Exited");
sendNotification("time exited is"+timer(...