Nordic semiconductor android ble library github. You signed out in another tab or window.
Nordic semiconductor android ble library github In the connectGatt is it now possible to specify the callback thread, but that only means the binder will call the callback on this looper. What I was doing wrong was in the discover services. My need is to do the same on my android device (Oneplus6). Sign up for GitHub By clicking “Sign up for Android 8. With v2. x. This just adds a delay, which causes troubles when you write and get notifications from the same characteristic (data is reused for sending and receiving and may be overwritten). Before recording, I set the desired interval (CONNECTION_PRIORITY_HIGH 11. 1 but we are still looking for a long-term solution. Hello, I try to implement library between two android device, server-client, client sending message to server is fine but when server sending message is not being received by client. I wouldn't say it's a bug, rather a feature. Hi, I implemented your library, When I try to test it with Samsung Galaxy S22 series, Bluetooth 5. IllegalArgumentException: Parameter specified as non-null is null: method kotlin. Clone the library project to the same root folder. 1 all BLE commands were called from the main thread in inside the library, even when called from another thread. I was testing mostly on the newer devices with API 27 and above. Both devices should support the data length extension. The GATT service on the peripheral has a We have developed an Android application for a customer (Ibiza) which makes use of nRF's Android-BLE-Library ( https://github. discoverServices()' on a null object reference at no. Sometime I am trying to set up a p2p service over GATT where each device can serve as both the central and the peripheral, with a gatt server and one or more gatt clients. Follow the snippet below when using the Android-Ble-Library in combination with the I've begun developing a sample server using the BLE library, to be followed by a sample client using the BLE library. 0 by @philips77 in #146 Migration to Android Gradle Plugin 2. android:ble-ktx:2. * <p> The sample application uses the Android BLE Library by Nordic Semiconductor ASA and is recommended to use this dependency in your application. Are you saying this doesn't work for Android should initiate bonding automatically. 9k. Both Android devices are running my app (with your library) where one is acting as GATT service and the other as client. lang. 5. Trying to connect through the raspberry I verified that in fact enabling the rawdata notification I receive data at 200Hz. With the Nordic central I found it Yes, all callbacks are executed in a binder. SCAN_MODE_LOW_POWER or SCAN_MODE_OPPORTUNISTIC should be used when scanning in background. 0) and we are facing disconnections (this happens randomly) with the sensors by the bluetooth service crashes and goes down, killing the connection. This repo is based on work done for a specific inhouse requirement in which probably not all methods in the original Java libraries taken from the Nordic Semiconductor libaries have been implemented. ConnectRequest's completion callback is called after the initialization is done (without or with errors). disconnect(), this also closes the BluetoothGatt. The vanilla android BLE API's expose a callback that is only I am developing an Android app that works with Android Bluetooth LE. Saved searches Use saved searches to filter your results more quickly Hi, We are facing some issues between our ble devices (ble version 5) and android mobiles using nrfsdk ("Android-BLE-Library") library. This repository contains the source code of the DFU library (lib/dfu module) and nRF DFU app. I connect to the sensor and write 49KB data to it. Connect to a Hi, I'm trying to use the library to get communication between an Android mobile and a BLE peripheral which utilises the extended PDU. When i try to connect it on first time, it held on "Connecting". I need to send/receive more than 20 bytes of data through BLE. You signed in with another tab or window. . I saw a post on the devzone explaining that the bond should be performed in the initialize() method. 7. Sign up for GitHub By clicking “Sign up for GitHub”, you agree to our Android doesn't have any selective API and You signed in with another tab or window. - NordicSemiconductor/Android-BLE-Library On Github, the Android BLE Library has a warning in the readme that states that it will be replaced by the new Kotlin-BLE Library. It would be great if the BLE library also reflects this change to enable apps to work without location permission when required. To understand things I wrote the central using the Nordic SDK 15. "This is the action CONNECTED" and "This is the action DISCONNECTED" but for some reason it doesn't register "This is the action Hi @gksrb4, Yes, we are aware of this issue. Is there any way to fix or catch this exception to prevent the app from crashing? Interesting, when I tried using BluetoothGattServer. Assignees No one SCAN_MODE_LOW_POWER or SCAN_MODE_OPPORTUNISTIC should be used when scanning in background. I'm using a Redmi note 7 (Android 10) I got no problems but with a Samsung Galaxy S20 (Android 12) I always have REASON_LINK_LOSS when my BLE device perform a disconnection. 108 24296-2434 The production version of nRF Toolbox depends on Kotlin BLE Library and demonstrates use of the Android BLE Common Library, which contains utility classes used by apps developed by Nordic Semiconductor. Seriously. I'm using no. 0 the reference to value received in onCharacteristicChanged is copied as quickly as possible and then not used, unless you use deprecated onCharacteristicNotified(BluetoothGatt, BluetoothGattCharacteristic) method. If I call writeCharacteristic it will lead in a result to call BleManagerHandler. I was wondering if there is an example similar NordicSemiconductor/Android-BLE-Library 介绍. Reliable Write would cancel all remaining requests and fail, but the base atomic Hi @philips77, thank you. 13) Library version: v2. ble. Please let me know if you would need any more specific central or peripheral side logs. BluetoothGatt. Why it does Library: no. As you can see in the log You signed in with another tab or window. The repository contains a Kotlin Multiplatform BLE library which unifies BLE API between Android and iOS. ) in an earlier prototype without that library it still would not reconnect. cancelQueue() in fail handler of each inner request to cancel further requests if you don't wish to continue after a fail. The remaining classes of nRF Blinky are responsible for scanning or UI and are not needed to understand how to use BLE Library. You may also include the BLE Library and BLE Common Library as modules. I have commented all the code inside "isRequiredServiceSupported" in the GattCallback and now it works, I have to rework this part of the code but at least I am not blocked. 0 and no. I guess that could be more documented. 0-alpha5 Phone: HTC Desire 820u with android 6. 2 of the library, I started noticing onServicesInvalidated being called after connection and initialisation. Good morning, I tried it yesterday, and the name is temporarily saved successfully, but when I reopen the page, I get the list of connected devices through List devices = manager. It'd be wonderful if we could all collaborate on this, as right now, Android is winning. The problem is that link layer PDU size is always selected as 27 bytes during the negotiation. - NordicSemiconductor/Android-BLE-Library A library that makes working with Bluetooth LE on Android a pleasure. 25 - 15ms) and MTU (247) Next, I initiate the sending of files of 128, 232,240 bytes. Shouldn't they be named with Update nRF5 SDK firmware using Bluetooth LE. My problem exists also using this BLE library. In the version 2. enqueue() method for initialization requests!. 1, We currently hotfixed it by doing a version rollback to 2. The done callback is called immediately when the data are written to the outgoing queue on Android, not actually when they are sent/received. You switched accounts on another tab or window. Hi @philips77, thanks for the response!I'm a coworker of @wcauchois and have been digging into this a bit more. 1, got a crash once on Samsung Galaxy S9 (Android 10) because mBluetoothGatt was null: protected void onDeviceReady() { mCallbacks. 4 and works normally 🤔 I have an activity that starts a foreground service. This has been tested on different Google pixel Android 13 phones. 6. NullPointerException: at Hello, we are facing an issue by connecting several sensors (UART nrf52832) to an Android Application ( Android Nougat 7. suspend() method of WriteRequest, that isn't cancellable, I'm manually suspending execution with suspendCancellableCoroutine and then call . To Reproduce. But I would like to perform a The BleManager was used to connect with the peripheral device. before ( new BeforeCallback () { @ Override public void onRequestStarted ( @ NonNull BluetoothDevice device ) { log ( Log . The lib should proceed (repeat the last operation (on older Android versions) or wait until Android does it on its own (on newer)) after the bond is complete. I will gladly add the tag information on the Readme if you create Android switches to 7. Cannot access 'ObservableBleManager': it is package-private in 'no. To communicate in both ways, I (the Android app) receive notifications from the characteristic and when I need to Library version: 2. Environment no. getConnectedDevices(BluetoothProfile. These can then be used to further investigate the issues here perhaps. and You signed in with another tab or window. Remember to call . The Nordic device, on the rawdata characteristics, allows a maximum sampling rate of 200Hz. 1 Problem: NullPointerException, when a connected BLE-device is specially reset manually. 1) to work with the current ble library (2. Here is my server: public final static UUID DEVICE_UUI Hey All, I'm facing an issue with the BLE connection. By creating BluetoothDevice without scanning, Android will assume public type of address if it didn't scan that device since Bluetooth was turned on and such connection request would fail even with this device nearby. First, Thank you for this lib. After few days of app work I figured out t Hi, I use this nice library to connect to a Nordic device and subscribe to notifications from one specific characteristic. 目前在 Github 上有 1. I am making a ECG app. close without calling disconnect or notifying the client about failed read request; next connection attempts are not possible because library have connected = true flag and each time calling connect it leads to the failed request (see internalConnect line 486) Expected The library does not report neither success not failure despite the data not being sent. To ensure that only one can be connected at the same time, I disconnected one and then linked the other. We are connecting to a peripheral that will display your temperature. However I would like to use Android-BLE-Library 1. I was wondering if there were any Kotlin-specific features that could be missing from the library. 4 Tested against: Samsung s20 - Android 10, Pixel 2 - Android 10. It will be addressed in version 2. The foreground service creates BLEManager and connects to BLE devices with useAutoConnect(true). Tested on Device: One plus 8T (Model KB2001) OS: Android 13 (KB2001_11_F. An Android library that solves a lot of Android's Bluetooth Low Energy problems. Hello! After restarting application and reconnecting to device i have folowing errors in LogCat: 2019-01-26 10:06:22. bondingState and it seems that i never receive NOT_BONDED state in both situation above. To split logic from parsing, we recommend to You signed in with another tab or window. If you are using the new callbacks you should get the proper data every time. The Nordic NRF Toolbox app and the NRF Connect and also this library, disconnects automatically inmediately after it connects. So the library works next way: it stores request and depending of its type - performers different operations in our case Hi, First of all, thanks for this awesome library! I'm having trouble understanding the auto connect feature / the ConnectionState. jvm. The problem describe by @rickymohk still exist on some devices (with Android-BLE-Library v2. Setting the timeout less than 30 seconds definitely helped reduced the frequency of the crashes, thanks for that suggestion! Hello, I'm writing an android application, using no. nordicsemi. can only get correct value by BluetoothDevice. 109 24296-24340/? E/bt_btif: bta_gattc_process_indicate, ignore HID ind/notificiation 2019-01-26 10:06:24. And I have a question: First of all, I am trying to make Hi everyone, I'm new to the library and can't figure out how I could bond after the connexion to a device. With Android 14 I get status updates e. I tried the native Bluetooth LE API in Android first. done(new SuccessCallback() { @Override public void onRequestCompleted(@NonNull BluetoothDevice device) { KLog. 2. 2) We are able to connect our devices with mobile phones like samsung, redmi note 8 pro, r We have an exception in the library using version 2. What I meant was that it might have been nullified on disconnection (it's not, as uuid is logged) or not refreshed after the second service discovery (so it was obtained on the first connection), but I think even such should work, as all it's used is the handle number, which is the same. RequestFailedException} with * {@link FailCallback#REASON_REQUEST_FAILED} status if called synchronously. the fail staus is 2. The DFU is design to update the firmware of nRF51 or nRF52 Series SoCs having an You signed in with another tab or window. if i keep a observer of ObservableBleManager. BlinkyManager(this). 1. Note, that newer Android versions will enforce using low power mode in background, even if another one has been set. Sign in When I call BleManager. isRequiredServiceSupported() method is passed a BluetoothGatt instance that at first appears to have none of my services on it. Server app does BLE advertising 24/7 and accept connections beside. iOS part has been implemented in Kotlin Multiplatform and uses native iOS classes like Very often the change happens when the device restarts, so the indication is sent immediately after enabling encryption after connection. May I submit a PR for this? What do you think would be the best, a try/catch for the NullPointerException or to store the object in a final local value before the null check to make it immutable as you did for the serverManager value?. The library simplifies usage of Android Bluetooth Low Energy on Android. The usage is designed to be more natural according to the BLE Is there any good tutorial about the Android-BLE-Library Nordic library ? I have only found the examples, but you need to dig in the code to learn how to use. android:ble:2. I have the following piece of code: private val _connectedPeripheral: MutableLiveData<MyDevice> = MutableLiveData() public val connectedPeripheral: LiveData<MyDevice> get() = _connectedPeripheral private val bleManager = MyBleManager(con Released as 2. 2-Could you tell me what is the difference between NordicSemiConductor library and that default library in android ? What capabilities or extras enableNotifications(notify) . 1 java. BlinkyManager implementation:blinky:ui - contains the UI related code, e. NullPointerException: Attempt to invoke virtual method 'boolean android. getBondState(); for the 1st situation, i set a then callback but it is not invoked @philips77 Taking a step back from the specific code flows in this issue: What is the best way for an app using the Nordic BLE Library to determine if a disconnection happened because the user removed the device bond from the Android settings Bluetooth menu, compared to something outside of the software's control (like the device moving out of You signed in with another tab or window. 0 ? Anyway did you try all 3 approaches in #3 at Android-BLE-Library 2. Move your callback implementation from BleManagerGattCallback to request callbacks. As I need to be connected to the device when it is reachable, I thought that having the system handle this for me would be nice and not You signed in with another tab or window. Note We're working on a new version of Bluetooth LE library, which eventually will replace this one: Kotlin A library that makes working with Bluetooth LE on Android a pleasure. enqueue() inside. Navigation Menu Toggle navigation. When bluetooth is re-enabled I've been seeing this crash in my app with Samsung devices. BLE Manager may be used in a Service, from ViewModel, or directly in the activity if you are not scared of orientation changes and memory leaking, etc. Hello, I'm using we are using your library for managing my BT connections and mostly it is working great. In Android 7. The device running the GATT service will have the service started as soon as the app is started as foreground service, the device acting as client will only on demand scan, connect and bond Thanks!I have saw it,but i have also use BluetoothGatt in my project,which also include a requestConnectionPriority. This library allows to emulate scanning with PendingIntent on pre-Oreo devices by starting a background service that will scan with Migration to Nordic Common library 2. Android part it is a wrapper around BLEK. fromString("00002902-0000-1000-8000-00805f9b34fb"); You signed in with another tab or window. And when i kill the app from tasks, opens it again and click on connect, then connection established. ? Thanks. Sign up for GitHub By clicking “Sign up for GitHub”, you (ContextWrapper. 0. 1k. Hi Aleksander. I cannot establish a connection. But with the official release v2. NordicSemiconductor / Android-BLE-Library Public. This was tested on the develop branch (v2 library - 2. Code; Issues 38; Pull New issue Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. 0-alpha6) and everything seems to be working correctly in all cases, except for when bluetooth is disabled on the device (after connection has been made). And i have a ECG sensor BLE device. Regarding threading issue, in 2. 0-alpha03(also on 2. android. android. g. connect(. 3 and Kotlin 2 by @philips77 in #147 and #151 Custom scan filters by @philips77 in #148 Hi, With WRITE_TYPE_NO_RESPONSE write type the data are sent without confirmation from the fw, thus can be sent in a single connection interval. The text was updated successfully, Did you take any sniffer logs, for example using hci-logs on Android? I agree that this is more a StackOverflow question, or at least for DevZone, if you are using Nordic chips. (Version 2. So my recommendation for you would be to start scanning, on Android Hi, I'm using Android-Scanner-Compat-Library to scan the data and trying to connect using Android-BLE-Library. We also tried to call enqueue() instead of await() but the behaviour is exactly the same. However, on Android 13 the bluetooth disconnects with the following logs: 2022-09-15 12:59:30. If you prefer a Read and notify requests are not getting accepted. Hi, Since Android 12, location permission has been separated from Bluetooth permission. length ) . Notifications Fork 407; Star 1. This caused errors in our logic due to the collection of gatt services being emptied in the onServicesInvalidated override. java:726) at Yes, the atomic queue will complete no matter of the inner requests result. NullPointerEx As you said and I read the comment of waitForIndication method, It's one-time callback and helpful in waiting setIndicationCallback done before the trigger command wrote. :-) Progress so far: #234 Next time I open the app and reconect the BLE device I would like to see if it is already bonded and hide the button. As a result, after 10-15 seconds, the disconnect event occurs in the Xamarin Forms project for Android binding Nordic Semiconductor BLE libraries from Java. Notifications You must be signed in to change notification settings; Fork New issue Have a question about this project? Sign up for a free The Android app is running on a Motorola Edge phone (Android 10) which implements Bluetooth 5. In my case I need the RSSI Value to sort for highest signal first in a space where many of our devices are available. Hello, First of all, in order to connect, you have to first scan for the device, or have it bonded. connect(bluetoothDevice!!) // Automatic retries are supported, in case of 133 hi~ Now I pair my mobile phone with the device and connect it with Bluetooth. Thank you for the overall You signed in with another tab or window. The connection worked just fine. I'm finding that on connections to my peripheral that are not the very first one, but subsequent connections after bonding has already happened, the BleManagerGattCallback. From the documentation it's not quite cle After updating to v2. If I stop the activity by clicking the home button, turn off the screen and cut the bluetooth link by taking the bluetooth device far away from the phone, the bluetooth device won't auto reconnect until I turn on the Would it be possible to implement some sort of internal mapping of the Android's GATT errors/states, that is passed along with the 'onDeviceDisconnected' call? NordicSemiconductor / Android-BLE-Library Public. Hi Android-Ble-Library developers, we have issue with readCharacteristic request on Samsung devices using Android 13. 3+ Native Android API (e. 0). I've seen third I am not sure if this is a library issue or an Android issue. Here, instead of using library's . So I wonder what's the way for a server to ask a paired client to connect. I have tried to follow the code provided by Android-nRF-Toolbox. I am currently modifying the nrf mesh app(1. That's why in the BLE library it is possible to delay service discovery to make sure the indication is handled (otherwise Android would return cached services): When using exactly same code (excluding BLE permissions), with Android 11, I receive data normally and in the Log I get "This is the action ACTION_DATA_AVAILABLE" as expected. As soon as you push the button on the device it reports it's data and it seems like it is reporting it's data before we have had a change to set our callback. Reload to refresh your session. So I cant use requestConnectionPriority from the BleManager,or the another way of describing is that I dont know how to use requestConnectionPriority from the BleManager and BluetoothGatt in the same time. As per the migration guide I've edited the initialisation method. Already have an account? Sign in to comment. Server app is running 24/7 on device with Android 9. Unfortuntely the ObservableBleManager bondingState is incorrectly reported as NOT_BONDED when it actually is bonded. To be honest, I think this use case needs modification of the library. If the write request doesn't succeed or fail within given timeout, the withTimeoutOrNull function will cancel the block inside it and return null, so we can handle this case. I have a Motorola G5S with Android 7. nRF Toolbox UART, 2018-08-02 Sign up for free to join this conversation on GitHub. cant connect success to bluetooth device when i use the [Android-BLE-Library]. Additionally, if after being connected to a device you explicitly call BleManager. Does it make Skip to content You signed in with another tab or window. 5 Mobile phone: Huawei P30, Redmi Note 7. 0, there are some methods named setNotificationCallback, setIndicationCallback, setWriteCallback and setWriteCallback. 0 for some reason. Interestingly if you attempt to reuse the same BleManager to connect to the peripheral again, this code will close() the BluetoothGatt before reattempting connection. livedata' Using Kotlin 1. Instead, I would recommend 3 options: Using Android Compat Scanner library - if you plan to support Android 4. But in my app, I have some scenarios where the Indication callback will be called multiple times. I use the BLE library to connect to another Android device with the peripheral role. So what exactly happening is that some iOS-based clients are trying to connect with Android-based advertisers and we are using this library to do the job and it works in most of our u You signed in with another tab or window. I don't know if this is the direct cause, but sometimes BleManager's onServicesDiscovered is not called. It is recognised that if the device is not a bonding device when connected, the discoverService is executed after a delay of 300 ms, but in reality the BluetoothGatt executes the discoverService immediately. See changes in Android nRF Toolbox and Android nRF Blinky for more examples. 21 (if is needed) and using via maven (not as module) Edit: Tried with 2. 3. Notifications You must be signed in to change notification New issue Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Could you let me know where to modify in 1. It seems that the BluetoothDevice object is coming up as null: Fatal Exception: java. * {@link no. Code; Issues 34; Pull requests 1; I'm working on a test feature in nRF Connect for Android that will let us create such list, but this is still month before releasing. It is a wrapper around native API and uses Kotlin Coroutines for asynchronous operations. 2 and Android OS version 13, I can't able to set MTU as 512. [Server] sendNotification ( mNotifyCharacteristic , bytes , 0 , bytes . Blinky API or the Service UUID:blinky:ble - contains the BLE related code, e. I have bound multiple Bluetooth devices and switched between them in the list. It works as expected on Android 11 and Android 12. onDeviceReady(mBluetoothGatt. com/NordicSemiconductor/Android-BLE A new version of Nordic Semiconductor's Android BLE library has been released. But I seem to run into some problems with the bonding process. 850 V/Android-BLE-Librar On the same device we started our test while to Android 11 -> Android 12-> Android 13. I am having some issues getting the server to accept clients. However, I think it might also be necessary to close() the Hi, I'm looking for an example on how to use the readRssi()-Function exactly. Hi Android-Ble-Library developers, I tried to illustrate the communication diagram between a BLE Device and an Android device when I tried to send the data (with my observations). Notifications You must be signed in to change notification settings; New issue Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. 7K 的 My question is in relation to bonding. 0 it works. btw, there may be other two questions. Issue occurs only when we trying to read data larger then 512. We tried changing MTU Our android application uses the Android BLE library and we have problems with one specific phone (Huawei P10 lite) When trying to connect to bootload Skip to content. This may take a while and perhaps some repetitions are needed in Saved searches Use saved searches to filter your results more quickly Yesterday I could use own default android ble library for doing that things I wanted. library prints to the log that the phone lost bonding; library calls gatt. nextRequest where the WriteRequest will be stored to private field private Request request;. The problem is, that in the current version all BLE requests are performed from the main thread, while the gatt callbacks use their own thread, so there is a thread change before every write operation. d("onRequestCompleted private final static UUID CLIENT_CHARACTERISTIC_CONFIG_DESCRIPTOR_UUID = UUID. 5ms interval to make the discovery as fast as possible, and then back to a default interval on one requested by the peripheral. bluetooth. I read #3 for sending more than 20 bytes. I am adverti The library does not support scanning, just Client or Client+Server connection mode. But I get the same problem using this library. https://github. But the problem is it's written using ViewModel pattern and I NordicSemiconductor / Android-BLE-Library Public. This library allows to emulate scanning with PendingIntent on pre-Oreo devices by starting a background service that will scan with NordicSemiconductor / Android-BLE-Library Public. Then the mobile phone connects the device through Bluetooth, and it finds that the device can not connect, and returns to state 22. app. exception. BlinkyScreen or as you can see [Server callback] Notification sent (status=0) is shown (from the Ble library) but somehow sendNotification finished nor sendNotification DON'T FINISH hasn't been shown and we are making a synchronous call so it should be reached. The peripheral in question had a firmware update by our hardware team using nRF Connect. Sign up for GitHub By clicking “Sign up for GitHub ? android. getDevice()); } Callstack: Fatal Exception: java. writeCharacteristic where the data has 543 bytes in the array, the call succeeds on Android 12. Some context: I scan for a device, call connect( with AutoConnect set to true), then bond with the device. The codebase I am using is the Android-nRF-Blinky GitHub The problem is that Android-BLE-Library needs to establish a connection at least 1 time before using the flag autoConnect internally, unfortunately, that's where the troubles begin because I'm looking to use the flag autoConnect precisely because I don't need to connect quickly and I want to save battery life. in You signed in with another tab or window. * Starting from Android Oreo you may get a callback with the interval, latency and timeout * using {@link ConnectionPriorityRequest#with(ConnectionPriorityCallback)}. Follow the snippet below when using the Android-Ble-Library in combination with the Android-Mesh-Library to send and receive data. 1 TEST BLE Device situation: the device send the bond request when we enable the TXCharacteristic notification. Similar to how there's both no. Nordic is the manufacturer of the system on a chip (SoC) inside some Bluetooth devices. BluetoothLeScanner) - if you like callbacks and builders; Kotlin BLE Library Yeah, I've been using the module in Kotlin just fine. 1 library for the server app. Originally posted by @philips77 in #200 (comment) The original issue merged in PR#209 breaks connection attempts on some devices, where devices will no longer be able to enqueue any requests to characteristics after co The solution 1 won't work, as there's 30 sec timeout for connecting with autoConnect = false. It seems like the enqueue gets two callbacks, done and fail. I am using Nordic's Android DFU Library v2. That causes my Android-BLE-Library version : 2. If I understand correctly, this happens only because both devices act as a server and client and therefore both do the service discovery? Personally I don't need them to act as both (in a PoC implementation I did before, this was not a problem since only one acted as a server and the other as a client. You may call queue. 1). BluetoothDevice shows it as being bonded. I was able to scan and You signed in with another tab or window. Notifications You must be signed in to change notification settings; Fork 424; Star 2. You signed out in another tab or window. I encountered a crash : java. I do not think it is a remote device issue since there is no outgoing BLE traffic after the re-connection if I do not do the workaround. Then I delete the matching information of the device. This method The sample application uses the Android BLE Library by Nordic Semiconductor ASA and is recommended to use this dependency in your application. com/NordicSemiconductor/Android-BLE-Library. GATT); It returns a BluetoothDevice, so the name still cannot be Get , the connected bluetooth device will no longer broadcast, and of Hi, in the 2. I think the issue in my case is the trigger command written before the set indication callback is The issue is the BLE device reply me but i can not get any notification from the device with my Android 13 phone. The application consists of the following modules::app - the main module, contains the application code:scanner - contains the scanner screen destination:blinky:spec - contains the Blinky device specification, e. IntentReceiverLeaked: Service Hi, thanks for the quick reply! I have been able to initialize the device now. wbcn myrzjdo kogyv mtn jkxnq zdzzxf wsmsj ismf aovtd tnkgd