Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLE Console #21

Closed
grjackie opened this issue Feb 14, 2023 · 3 comments
Closed

BLE Console #21

grjackie opened this issue Feb 14, 2023 · 3 comments

Comments

@grjackie
Copy link

I am new to this app and am trying to figure out all commands but still getting errors I don't understand.
Can you give me some examples of how to write to my device?
Example: how would I write a Bluetooth name?
Write %name ?

@grjackie
Copy link
Author

Please specify characteristic name or # for writing.
What am I forgetting?

@sensboston
Copy link
Owner

Hmm, you're really confused me 😒; I've assumed so far that BLEConsole commands/UI are pretty clear (btw, nobody asked that question before).

You can use BT name or # provided by list command. For example, run BLEConsole, type ls and it should list available BT devices, like

BLE: ls
#00: F2
#01: TOZO-S2

Than use command open #1 or open TOZO-S2 (you can also use partial name, like TOZ if no more BLE devices with tat name exist), you'll get an output like

BLE: open #1
Connecting to TOZO-S2.
Found 3 services:
#00: GenericAccess
#01: GenericAttribute
#02: 2800

Now you can set active service and list characteristics, by issuing command set #0

BLE: set #0
Selected service GenericAccess.
#00: DeviceName RW
#01: Appearance R
#02: PeripheralPreferredConnectionParameters    R
#03: 10918      R

Now you can read characteristic by # or name, like read #0

BLE: read #0
TOZO-S2

If you already knew your service name/#, you can avoid previous step and read characteristic after successful connection to BLE device, like read #1/#0

@grjackie
Copy link
Author

grjackie commented Mar 21, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants