Hi,
We are using iBLE library for our app. Works ok. But newer hardware devices, the uuids of service & characteristic have changed to short uuid. I've attached a screenshot.
Connection works as usual, but DataAvailable never called.
I've seen with NativeObject that the service has characteristic uuids, and the corresponding characterístic has values:
<B4INativeObject: (
"<CBCharacteristic: 0x72280e0, UUID = 2A39, properties = 0x12, value = <2100f200 037f0000 0000>, notifying = NO>",
"<CBCharacteristic: 0x72285f0, UUID = A001, properties = 0x2, value = <02>, notifying = NO>",
"<CBCharacteristic: 0x7228740, UUID = A002, properties = 0xA, value = <04>, notifying = NO>",
"<CBCharacteristic: 0x72287a0, UUID = A003, properties = 0xA, value = <00>, notifying = NO>",
"<CBCharacteristic: 0x722af00, UUID = A007, properties = 0xA, value = <00>, notifying = NO>",
"<CBCharacteristic: 0x722af80, UUID = A008, properties = 0xA, value = <00>, notifying = NO>",
"<CBCharacteristic: 0x722afe0, UUID = A00A, properties = 0xA, value = <00>, notifying = NO>",
"<CBCharacteristic: 0x722b040, UUID = A00B, properties = 0xA, value = <00000000 2dfd0100 3f270f00 2c270020 0000>, notifying = NO>",
"<CBCharacteristic: 0x722b0a0, UUID = A00C, properties = 0x12, value = <00000000 00000000 00000000 00000000 0000>, notifying = NO>"
)>
<B4INativeObject: <CBCharacteristic: 0x72280e0, UUID = 2A39, properties = 0x12, value = <2100f200 037f0000 0000>, notifying = NO>>
<B4INativeObject: <2100f200 037f0000 0000>>
The only change we've seen is the short uuids instead of long uuids.
Thanks.
Best regards.
Angel.
We are using iBLE library for our app. Works ok. But newer hardware devices, the uuids of service & characteristic have changed to short uuid. I've attached a screenshot.
Connection works as usual, but DataAvailable never called.
I've seen with NativeObject that the service has characteristic uuids, and the corresponding characterístic has values:
B4X:
Dim serv As NativeObject = managerBLE.GetServiceObject( "180D")
Log(serv)
Log( serv.GetField("characteristics") )
<B4INativeObject: (
"<CBCharacteristic: 0x72280e0, UUID = 2A39, properties = 0x12, value = <2100f200 037f0000 0000>, notifying = NO>",
"<CBCharacteristic: 0x72285f0, UUID = A001, properties = 0x2, value = <02>, notifying = NO>",
"<CBCharacteristic: 0x7228740, UUID = A002, properties = 0xA, value = <04>, notifying = NO>",
"<CBCharacteristic: 0x72287a0, UUID = A003, properties = 0xA, value = <00>, notifying = NO>",
"<CBCharacteristic: 0x722af00, UUID = A007, properties = 0xA, value = <00>, notifying = NO>",
"<CBCharacteristic: 0x722af80, UUID = A008, properties = 0xA, value = <00>, notifying = NO>",
"<CBCharacteristic: 0x722afe0, UUID = A00A, properties = 0xA, value = <00>, notifying = NO>",
"<CBCharacteristic: 0x722b040, UUID = A00B, properties = 0xA, value = <00000000 2dfd0100 3f270f00 2c270020 0000>, notifying = NO>",
"<CBCharacteristic: 0x722b0a0, UUID = A00C, properties = 0x12, value = <00000000 00000000 00000000 00000000 0000>, notifying = NO>"
)>
B4X:
Dim c As NativeObject = managerBLE.GetCharacteristicObject("180D", "2A39")
Log(c)
Log( c.GetField("value"))
<B4INativeObject: <CBCharacteristic: 0x72280e0, UUID = 2A39, properties = 0x12, value = <2100f200 037f0000 0000>, notifying = NO>>
<B4INativeObject: <2100f200 037f0000 0000>>
The only change we've seen is the short uuids instead of long uuids.
Thanks.
Best regards.
Angel.