Android Question BLE2 observation possibly wish list

SteveTerrell

Active Member
Licensed User
Longtime User
Hi,

The BLE2 library (so presumably the underlying Java code) seems to require service and characteristics addresses in lower case

B4X:
    bleManager.WriteData("6e400001-b5a3-f393-e0a9-e50e24dcca9e","6e400002-b5a3-f393-e0a9-e50e24dcca9e",Array As Byte(0x31,0x42,0x43,0x20,0x32))

In my case the Adafruit Bluefruit LE UART friend will not respond if upper case is used in the BLE2 calls.

Many of the manufacturer documents, code samples etc. relating to BLE devices use upper case as in this quote from the Adafruit documentation
  • UART Service UUID: 6E400001-B5A3-F393-E0A9-E50E24DCCA9E
  • TX Characteristic UUID: 6E400002-B5A3-F393-E0A9-E50E24DCCA9E
  • RX Characteristic UUID: 6E400003-B5A3-F393-E0A9-E50E24DCCA9E

Perhaps the BLE2 library could perform a toLower function to handle this variation?
 
Top