Hello
I initially ran the B4A example that connects and reads the services and characteristics. Below I wrote what was displayed regarding my BLE device(TYSA-B 3.0.0). My BLE is connected to an Arduino board and its based on the nrf51822:
00001801-0000-1000-8000-00805f9b34fb
00001800-0000-1000-8000-00805f9b34fb
00002a00-0000-1000-8000-00805f9b34fb
TYSA-B 3.0.0
00002a01-0000-1000-8000-00805f9b34fb
00002a04-0000-1000-8000-00805f9b34fb
442f1570-8a00-9a28-cbe1-e1d4212d53eb
442f1571-8a00-9a28-cbe1-e1d4212d53eb
442f1572-8a00-9a28-cbe1-e1d4212d53eb
0000180F-0000-1000-8000-00805f9b34fb
00002a19-0000-1000-8000-00805f9b34fb
Then I loaded the example that has 2 sliders and sends data to the BLE. I wrote the following:
Sub Service_Create
manager.Initialize("manager")
serviceId = UUID("2a00")
charId = UUID("2a01")
End Sub
Private Sub UUID(id As String) As String
#if B4A
Return "0000" & id.ToLowerCase & "-0000-1000-8000-00805f9b34fb"
#else if B4I
Return id.ToUpperCase
#End If
End Sub
When I run the application I get no interaction with the BLE.
Any thoughts? Thanks in advance!
-------------------------------------------
P.S. I ran the Bluefruit app from Adafruit. Here's what it displayed:
Generic Access
UUID 1800
Device Name
UUID 2A00
Data (Dec) TYSA-B 3.0.0
Appearance
UUID 2A01
Data (Hex) 00-00
Peripheral Preferred Connection Parameters
UUID 2A04
Data (Hex) 50-00-A0-00-00-00-F4-01
Generic Attribute
UUID 1801
Battery Service
UUID 180F
Battery Level
UUID 2A19
Data (Hex) d
Client Characteristic Configuration
Data (Hex) 00-00
Service
UUID 442f1570-8A00-9A28-CBE1-E1D4212D53EB
442f1571-8A00-9A28-CBE1-E1D4212D53EB
UUID 442f1571-8A00-9A28-CBE1-E1D4212D53EB
Data (Hex) 00
Client Characteristic Configuration
Data (Hex) 00-00
442f1572-8A00-9A28-CBE1-E1D4212D53EB
UUID 442f1572-8A00-9A28-CBE1-E1D4212D53EB
Data (Dec)
Client Characteristic Configuration
Data (Hex) 00-00