mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-15 00:04:29 +08:00
client: Add samples init scripts
This adds sample init scripts that can be passed to bluetoothctl for testing.
This commit is contained in:
parent
f2f7c742ad
commit
fb1c694100
2
client/scripts/advertise-broadcast.bt
Normal file
2
client/scripts/advertise-broadcast.bt
Normal file
@ -0,0 +1,2 @@
|
||||
power on
|
||||
advertise broadcast
|
2
client/scripts/advertise-on.bt
Normal file
2
client/scripts/advertise-on.bt
Normal file
@ -0,0 +1,2 @@
|
||||
power on
|
||||
advertise on
|
2
client/scripts/advertise-peripheral.bt
Normal file
2
client/scripts/advertise-peripheral.bt
Normal file
@ -0,0 +1,2 @@
|
||||
power on
|
||||
advertise peripheral
|
5
client/scripts/gatt-batt.bt
Normal file
5
client/scripts/gatt-batt.bt
Normal file
@ -0,0 +1,5 @@
|
||||
gatt.register-service 0x180f
|
||||
yes
|
||||
gatt.register-characteristic 0x2a19 read,notify
|
||||
64
|
||||
gatt.register-application
|
3
client/scripts/power-on-off.bt
Normal file
3
client/scripts/power-on-off.bt
Normal file
@ -0,0 +1,3 @@
|
||||
power on
|
||||
power off
|
||||
quit
|
3
client/scripts/power-on.bt
Normal file
3
client/scripts/power-on.bt
Normal file
@ -0,0 +1,3 @@
|
||||
power on
|
||||
show
|
||||
quit
|
26
client/scripts/preset-custom.bt
Normal file
26
client/scripts/preset-custom.bt
Normal file
@ -0,0 +1,26 @@
|
||||
endpoint.presets 00002bc9-0000-1000-8000-00805f9b34fb custom
|
||||
48
|
||||
10
|
||||
3
|
||||
100
|
||||
Low
|
||||
10000
|
||||
Unframed
|
||||
2M
|
||||
200
|
||||
3
|
||||
10
|
||||
20000
|
||||
endpoint.presets 00002bcb-0000-1000-8000-00805f9b34fb custom
|
||||
48
|
||||
10
|
||||
3
|
||||
100
|
||||
Low
|
||||
10000
|
||||
Unframed
|
||||
2M
|
||||
200
|
||||
3
|
||||
10
|
||||
20000
|
2
client/scripts/scan-bredr.bt
Normal file
2
client/scripts/scan-bredr.bt
Normal file
@ -0,0 +1,2 @@
|
||||
power on
|
||||
scan bredr
|
2
client/scripts/scan-le.bt
Normal file
2
client/scripts/scan-le.bt
Normal file
@ -0,0 +1,2 @@
|
||||
power on
|
||||
scan le
|
4
client/scripts/scan-on-off.bt
Normal file
4
client/scripts/scan-on-off.bt
Normal file
@ -0,0 +1,4 @@
|
||||
scan on
|
||||
show
|
||||
scan off
|
||||
quit
|
2
client/scripts/scan-on.bt
Normal file
2
client/scripts/scan-on.bt
Normal file
@ -0,0 +1,2 @@
|
||||
power on
|
||||
scan on
|
Loading…
Reference in New Issue
Block a user