-
Notifications
You must be signed in to change notification settings - Fork 72
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
Comments
Please specify characteristic name or # for writing. |
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
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
Now you can set active service and list characteristics, by issuing command set #0
Now you can read characteristic by # or name, like read #0
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 |
I will try that.
Thank you
From: SeNS ***@***.***>
Sent: Tuesday, March 21, 2023 11:30 AM
To: sensboston/BLEConsole ***@***.***>
Cc: grjackie ***@***.***>; Author ***@***.***>
Subject: Re: [sensboston/BLEConsole] BLE Console (Issue #21)
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
#1: TOZO-S2
Than use command open #1 <#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
#1: GenericAttribute
#2: 2800
Now you can set active service and list characteristics, by issuing command set #0
BLE: set #0
Selected service GenericAccess.
#00: DeviceName RW
#1: Appearance R
#2: PeripheralPreferredConnectionParameters R
#3: 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 <#1> /#0
—
Reply to this email directly, view it on GitHub <#21 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/A54SIZUAOTUABGWJW2ZIPQ3W5HJO7ANCNFSM6AAAAAAU3VKI4Y> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/A54SIZV4IB4MXVCZSHVQ6K3W5HJO7A5CNFSM6AAAAAAU3VKI42WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSYDMUYW.gif> Message ID: ***@***.*** ***@***.***> >
|
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 ?
The text was updated successfully, but these errors were encountered: