B4A Library [B4X] BLE 2 - Bluetooth Low Energy - Erel    May 6, 2021   (26 reactions)   tags: Bluetooth, Bluetooth Low Energy, BLE This library replaces the previous BLE library. It is simpler to use and it is more powerful. Its API is based on B4i iBLE library which makes it easy to reuse B4i code. See the iBLE tutorial: https://www.b4x.com/android/forum/threads/ble-bluetooth-low-energy-library.46099/#content Tips &... characteristic. - BLE is only supported on Android 4.3+. See the attached example. Note that the important code in in the Starter service module. Edit: A new version of BLE_Example was uploaded... B4i Library BLE (Bluetooth Low Energy) library - Erel    May 6, 2021   (4 reactions) B4i BLE library is now available. This library allows you to connect and read data from BLE... is raised when you initialize BleManager and when the BLE adapter state changes. Only if the state..., AdvertisingData As Map, RSSI As Double) - Raised when a new device is discovered (after you call BleManager... (click on the small gear button). hnY7wVKcpzk iBLE is now included as a preinstalled library. Example... the description as needed. B4XPages example: https://www.b4x.com/android/forum/threads/b4x-ble-2-bluetooth-low... B4i Tutorial BLE Chat - Connecting Android and iOS - Erel    Mar 14, 2021   (5 reactions) 5-QyJEIxO74 This example is based on the new PeripheralManager type introduced in iBLE v2.00. Please start with this tutorial: https://www.b4x.com/android/forum/threads/ble-bluetooth-low-energy-peripheral.66542/ There are three programs: BlePeripheral, BleCentral_iOS and BleCentral_Android BlePeripheral is the one that implements the peripheral role. The other devices will connect to the peripheral and communicate with it. The peripheral will relay the messages to all connected devices... B4R Tutorial Connecting to Arduino with BLE (Bluetooth Low Energy) - Erel    Jan 17, 2018   (7 reactions)   tags: BT, LE, Ble, Example .b4x.com/android/forum/threads/ble-hm-10-module-broadcasting-a-single-byte.65785/ In this example the Android or iOS device (only one at a time) will connect to the BLE peripheral and read and write.../basic4android/images/SS-2016-04-14_17.28.05.jpg The steps required are: 1. Scan for BLE devices. 2. Connect to the BLE. 3. On iOS we need to call ReadData once to discover the characteristics. 4. Call SetNotify to be notified whenever the Arduino writes to the BLE. 5. Call WriteData to send data to... B4A Question BLE Android 9 - Scanning stops when screen turned off - Jmu5667    Feb 28, 2019 manager As BleManager2 Private currentStateText As String = "UNKNOWN" Private...(Application.PackageName & ".svc_ble_sos_le$MyScanCallback", Null) Timer1...("getRssi", Null) log("svc_ble_sos_le() Scan_Result > name : " & name &... is turn back on the scan results resume. We were using the standard Ble method that Erel provided, https://www.b4x.com/android/forum/threads/ble-2-bluetooth-low-energy.59937/#content We switched to... B4A Library BLE Peripheral - Erel    Oct 7, 2018   (22 reactions)   tags: bleA, BLE A BLE connection is made between a central device and a peripheral device. In most cases the Android device will be the central device. Beacons, heart rate sensors and other BLE devices... B4i peripheral feature: https://www.b4x.com/android/forum/threads/ble-chat-connecting-android-and-ios... a BleManager2 object. 2. The StateChanged event will be raised. Assuming that the state is STATE_POWERED_ON you should initialize the BlePeripheral2 object. 3. Make sure that peripheral role... B4A Question [SOLVED] - Android 10 - Background GPS/Ble scans stop getting data after 1 hr - Jmu5667    Jan 19, 2021 . Hello All I have a gps service and a ble service. They run every 5 minutes from a main service.... Both the BLE and GPS do not give any results for their scanning i.e No Beacons found and No GPS....REQUEST_IGNORE_BATTERY_OPTIMIZATIONS) Application log data *** Service (svc_ble) Create *** 01/08/2021 10:12:07.395 - Atlas SOS - svc_ble(), Service_Create ** Service (svc_ble) Start ** 01/08/2021 10:12:07.409 - Atlas SOS - svc_ble(), Service_Start 01/08/2021 10:12:07.414 - Atlas SOS - svc_ble(), StartScan, STATE... B4A Question BLE scanSettings? - JordiCP    Jul 9, 2018   (2 reactions) I have a "conflictive" BLE device with a quite-limited pairing time-window, as the user must perform some actions on it at the same time for security reasons. Using BLEManager2, pairing usually works but only after a number of retries (different delays depending on the Android device), and this turns the process into something hard for the final user. --> Is there any way by means of JavaObject to access the native BluetoothLEScanner in order to pass custom scanSettings built... B4A Question Bluetooth BLE Difference between Android 7.1.1 vs 10.0?? - air cover    Mar 24, 2021 I've got a customer in the field who has Android 10. His Bluetooth is turned on and he can access BLE devices via apps. On each app screen at the very top his Bluetooth icon is displayed... ...except on mine! I've got 2 Android phones, one running 7.1.1 and the other running 9. On those 2 test phones I clearly see the Bluetooth icon displayed on the upper status bar as shown here... get my Bluetooth (BLE) remote control working on his phone. Has anyone seen anything different... B4A Question BLE2 - How to read a Bluetooth characteristic descriptor? - emexes    Feb 9, 2019 The 0x2902 descriptor is written to by SetNotify, and that is working beautifully. But there are other descriptors (per https://www.bluetooth.com/specifications/gatt/descriptors ) and I cannot work out how to read descriptor 0x2904 aka "Characteristic Presentation Format". The descriptor shows up in a BLE Analyser app, alongside the 0x2902 notify descriptor for the same characteristic. The descriptor is of fixed format and length (7 bytes). It describes the value returned... Page: 1   2   3   4   5   6   7   |