Open MosheMendel18 opened 1 year ago
Hey @MosheMendel18 , when we call QuickBlue.discoverServices(deviceId);
it give us the list of all the services and their characteristics list of a particular device . You can use these serviceId
characteristicId
to use the any read or write operations
Hey @MosheMendel18 , when we call
QuickBlue.discoverServices(deviceId);
it give us the list of all the services and their characteristics list of a particular device . You can use theseserviceId
characteristicId
to use the any read or write operations
Thanks for the reply, @SahilSharma2710. Would you be able to explain this a little more for me? Where do those values get saved so that I can call them in another command? (From what I can tell, it's a void method.)
For example, if I do this:
QuickBlue.discoverServices(scanResult.deviceId);
QuickBlue.readValue(scanResult.deviceId,serviceId,characteristicId);
The editor shows errors under serviceId
and characteristicId
, so I can't run the program.
I could use some help just doing a simple read and write. I'm not sure how to get the
serviceId
characteristicId
,BleInputProperty
, orBleOutputProperty
to run the code in the docs. Here's what I tried. It runs without error and manages to connect, but I don't know how to see any of the data from any devices. I think the beginning and end are fine, feel free to skip to the area between the asterisks.I expect the main issues are between the asterisk lines. I've tried to query things, but it seems like all the methods are
void
, and setting global variables didn't seem to work. Any help would be appreciated.