Android Question BLE 2 - WriteData

Declan

Well-Known Member
Licensed User
Longtime User
I am going through the BLE 2 example.
In order to send data to the remote BLE device (uBlox NINA), I must send:
B4X:
WriteData(Service As String, Characteristic As String, Data As Byte())
What exactly is:
Service As String and Characteristic As String
Where do I obtain these?
 

emexes

Expert
Licensed User
You can get Service and Characteristic IDs when you connect to the device and do a ReadData, but I think these are usually of readable characteristics rather than the writeable ones.

User nRF Connect app (free ✌) to manually connect up to the device and explore what it offers. Pretty sure it will show both readable and writeable characteristics. Also lets you manually read and write data from/to the device.

1593521877611.png
 
Upvote 0

emexes

Expert
Licensed User
What is the precise model number?

Is it a GPS module that communicates over BLE, or just a BLE serial cable replacement (no GPS), like the HM-10 / HC-08 modules?
 
Upvote 0
Top