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.
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
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
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:
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.
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:
On the 'nRF Connect' tool...
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...
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...
Playing around with the BLE peripheral library, I'm wondering if it's possible to change the advertising data. When doing a BLE scan with a RedBear Duo, it shows me:
The advEventType: 0
The peerAddrType: 1
The peerAddr: 64 D6 55 74 E2 D9
The rssi: -55
The advertising data: 2 1...
Hi, I'm trying to read rssi value from a BLE device connected but the event Manager_RssiAvailable never rise. I've tried with a pair of devices and the result is the same in both cases.
I'm using a service:
Sub Service_Start (StartingIntent As Intent)
I have an android app using BLE2, but BLE2 doesn't have functions to turn the Bluetooth Adapter on or off. Is it possible to add the BluetoothAdmin lib to my app along with BLE2? Will they play nicely together? :)