summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-03-21 18:13:49 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-03-24 16:52:45 -0700
commitfb1c694100b2aff6ee1ad69d2a07c0f122e2e929 (patch)
treec3d437e995a1fe1ff57a24ebbdc2b9fb765b3d80 /client
parentf2f7c742ad0b3b6f99e91889a7297cec21084015 (diff)
downloadbluez-fb1c694100b2aff6ee1ad69d2a07c0f122e2e929.tar.gz
client: Add samples init scripts
This adds sample init scripts that can be passed to bluetoothctl for testing.
Diffstat (limited to 'client')
-rw-r--r--client/scripts/advertise-broadcast.bt2
-rw-r--r--client/scripts/advertise-on.bt2
-rw-r--r--client/scripts/advertise-peripheral.bt2
-rw-r--r--client/scripts/gatt-batt.bt5
-rw-r--r--client/scripts/power-on-off.bt3
-rw-r--r--client/scripts/power-on.bt3
-rw-r--r--client/scripts/preset-custom.bt26
-rw-r--r--client/scripts/scan-bredr.bt2
-rw-r--r--client/scripts/scan-le.bt2
-rw-r--r--client/scripts/scan-on-off.bt4
-rw-r--r--client/scripts/scan-on.bt2
11 files changed, 53 insertions, 0 deletions
diff --git a/client/scripts/advertise-broadcast.bt b/client/scripts/advertise-broadcast.bt
new file mode 100644
index 000000000..476559d21
--- /dev/null
+++ b/client/scripts/advertise-broadcast.bt
@@ -0,0 +1,2 @@
+power on
+advertise broadcast
diff --git a/client/scripts/advertise-on.bt b/client/scripts/advertise-on.bt
new file mode 100644
index 000000000..4a227e039
--- /dev/null
+++ b/client/scripts/advertise-on.bt
@@ -0,0 +1,2 @@
+power on
+advertise on
diff --git a/client/scripts/advertise-peripheral.bt b/client/scripts/advertise-peripheral.bt
new file mode 100644
index 000000000..5e81c135f
--- /dev/null
+++ b/client/scripts/advertise-peripheral.bt
@@ -0,0 +1,2 @@
+power on
+advertise peripheral
diff --git a/client/scripts/gatt-batt.bt b/client/scripts/gatt-batt.bt
new file mode 100644
index 000000000..902fe48a2
--- /dev/null
+++ b/client/scripts/gatt-batt.bt
@@ -0,0 +1,5 @@
+gatt.register-service 0x180f
+yes
+gatt.register-characteristic 0x2a19 read,notify
+64
+gatt.register-application
diff --git a/client/scripts/power-on-off.bt b/client/scripts/power-on-off.bt
new file mode 100644
index 000000000..c7e150448
--- /dev/null
+++ b/client/scripts/power-on-off.bt
@@ -0,0 +1,3 @@
+power on
+power off
+quit
diff --git a/client/scripts/power-on.bt b/client/scripts/power-on.bt
new file mode 100644
index 000000000..0ba686f4f
--- /dev/null
+++ b/client/scripts/power-on.bt
@@ -0,0 +1,3 @@
+power on
+show
+quit
diff --git a/client/scripts/preset-custom.bt b/client/scripts/preset-custom.bt
new file mode 100644
index 000000000..08bfb57b6
--- /dev/null
+++ b/client/scripts/preset-custom.bt
@@ -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
diff --git a/client/scripts/scan-bredr.bt b/client/scripts/scan-bredr.bt
new file mode 100644
index 000000000..291a3eedb
--- /dev/null
+++ b/client/scripts/scan-bredr.bt
@@ -0,0 +1,2 @@
+power on
+scan bredr
diff --git a/client/scripts/scan-le.bt b/client/scripts/scan-le.bt
new file mode 100644
index 000000000..4a529b964
--- /dev/null
+++ b/client/scripts/scan-le.bt
@@ -0,0 +1,2 @@
+power on
+scan le
diff --git a/client/scripts/scan-on-off.bt b/client/scripts/scan-on-off.bt
new file mode 100644
index 000000000..ffa6c8181
--- /dev/null
+++ b/client/scripts/scan-on-off.bt
@@ -0,0 +1,4 @@
+scan on
+show
+scan off
+quit
diff --git a/client/scripts/scan-on.bt b/client/scripts/scan-on.bt
new file mode 100644
index 000000000..767cefc16
--- /dev/null
+++ b/client/scripts/scan-on.bt
@@ -0,0 +1,2 @@
+power on
+scan on