Closed grjackie closed 1 year ago
Please specify characteristic name or # for writing. What am I forgetting?
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
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
Than use command open #1 https://github.com/sensboston/BLEConsole/issues/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:
Now you can set active service and list characteristics, by issuing command set #0
BLE: set #0 Selected service GenericAccess.
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 https://github.com/sensboston/BLEConsole/issues/1 /#0
— Reply to this email directly, view it on GitHub https://github.com/sensboston/BLEConsole/issues/21#issuecomment-1478175115 , 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 ?