I managed to implement the functions necessary for detecting bluetooth devices. now that my connection is successful, I'd like to understand how I can get the information I need to be sent. In my case, I should convert this JS function:
function RequestAudit() {
Help("Caratteristica audit...
Hi everyone, i've used BLE library with Android and i have the necessity to use the SetNotify method.
On Android this method return a boolean value to tell if the operation went ok or not.
On iOS seems that the SetNotify method does not have a return value.
I use the return value to wait for...
I am already for few days unsuccessfully trying to detect button presses on BLE ring:
https://www.aliexpress.us/item/3256804654964335.html
I am able to connect to it, find notification characteristics, using SetNotify without complaint, but DataAvailable on presses never gets called.
There are 3...
Hi everyone, I already used BLE in the past for other project without any problems, now i'm using it again after some time and nothing works :confused:.
When i try to connect to a ble device it goes in timeout triggerint the Disconnected event because it couldnt connect.
My ble device is a...
Hi everyone, I noticed an important missing feature in the BLE library.
It seems to not be possibile to refresh the ServiceList, given the fact that the only place where you can get it is in the "Connected" event....
I'have a BLE Device that exposes a Service only after you complete a...
Hello,I try to use the BLE2 library to finish my Bluetooth plate,the code in my Application is the same as BLE2 example,but when i try to write data to the equipment.Some times,it might be success.And i can receive the data in the event.But most of the time(because of the Cheap Bluetooth...
Trying Erel's example (https://www.b4x.com/android/forum/threads/b4x-ble-2-bluetooth-low-energy.59937/#content), I am disconnected 1-2 seconds after connecting.
The logs:
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
Found: ...
It is surprising how often the basics get missed, when embroiled in heat of battle of programmer vs hardware, operating system, complex apis and libraries, etc.
I have found that whenever my BLE2 programs don't work, it's always nice to know that everything else in the chain *is* working, and...
Good day to everyone. I uploaded the BLE EXAMPLE to my phone. The application scans BLE devices, sees esp32 but does not connect. but apps in google play successfully connect.
Does anyone have an idea. Thanks
Hi everyone,
I'm developing an app that uses the BLE, i'm using the last suggested way: this.
However... i need to connect to a specific device knowing the MAC Address...
I made the App for Android and everything works because when the sub "_DeviceFound" fires it returns something like:
where...
Most Apps and Examples using BLE demonstrate how to receive data but my App only Transmits.
I have an RN4871 Module connected to a micro that sets it all up for transparent uart mode.
I rename it as "Temp". Over the past few years, I have tried BLE2 and can scan, connect to the device, and...
There are two android devices:
There is also an FSC-BT616 bluetooth module, which is connected to a PC via a UART-USB converter.
Program code:
Public SaveDeviceId As String
Public SaveServiceId As String
Public SaveCharacteristicId As String
Public ServiceIdStartsWith As...
For testing I am using private UUIDs on the my server device:
Service: c24995d4-0a48-41ec-b9c0-4c3488041ffa
Characteristic1: 516e4a32-562b-4378-9ade-f64252fb5854
Characteristic2: d9bcf8c4-1d56-43ab-91a1-d82d7f52ef5f
Characteristic3: 4fa4cc32-e3c4-4c8c-89e4-3c7b2b116403
On the 'nRF Connect' tool...
Hello!
I have a bluetooth device. I have already read the posts about BLE2 (included the BLE 2 - Bluetooth Low Energy thread).
My android device is paired correctly with the bluetooth device.
I cannot understand the way that I can use the method WriteData.
Is there a specific process, that I...
https://developer.android.com/reference/android/bluetooth/BluetoothGatt#setPreferredPhy(int,%20int,%20int)
I searched the forum, but couldn't figure out how to request a different Phy from a BLE Server.
I mean gatt.setPreferredPhy method.
Would you kindly illuminate me?
This isn't a question, just an observation that might save someone the days of stress that I've just had.
Symptom is an app that reads a BLE sensor, works great during development using B4A Bridge, solid as a rock. Then I recompile it with logging disabled (and now even comment out all...
Buonasera a tutti,
è qualche giorno che sto girovagando per il forum ma non riesco a trovare le istruzioni con tutte le proprietà ed i metodi della libreria BLE2 Bluetooth Low Energy per poterla utilizzare al meglio.
In particolare devo trasferire dei dati tra un modulo HM-10 e android come ad...
I am using BLE2 library (1.36) and the example code 'BLE_Example' posted in the forum to connect my Android phone (central) with a CC2541 chip (peripheral). I am using B4A v8.3.
Initially, I was able to connect with CC2541. But, after a few tests, the CC2541 disconnects immediately after...