aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-01-13 13:00:47 +0100
committerlonkaars <loek@pipeframe.xyz>2023-01-13 13:00:47 +0100
commit85370ed5e33b3b28d01b6d49a22da4524e1b689f (patch)
treef5f4cd69f4fef0817b1150fea3263cadcec7a199
parent1c747510457c40330f8bd4506e725889c3d012e2 (diff)
add more protocol test files
-rw-r--r--shared/protocol-tests/get-node-all.src21
-rw-r--r--shared/protocol-tests/get-node-d61c4e47-78ba-48cc-8000-000000000000.src21
-rw-r--r--shared/protocol-tests/post-link-self-d61c4e47-78ba-48cc-8000-000000000000.src38
3 files changed, 80 insertions, 0 deletions
diff --git a/shared/protocol-tests/get-node-all.src b/shared/protocol-tests/get-node-all.src
new file mode 100644
index 0000000..a783aa3
--- /dev/null
+++ b/shared/protocol-tests/get-node-all.src
@@ -0,0 +1,21 @@
+00: ff ; start byte
+01: 01 ; get node opcode
+02: 00 ; message id
+03: 00 ; ^
+04: 01 ; get all nodes (true)
+05: 00 ; uuid (00000000-0000-0000-0000-000000000000)
+06: 00 ; ^
+07: 00 ; ^
+08: 00 ; ^
+09: 00 ; ^
+0a: 00 ; ^
+0b: 00 ; ^
+0c: 00 ; ^
+0d: 00 ; ^
+0e: 00 ; ^
+0f: 00 ; ^
+10: 00 ; ^
+11: 00 ; ^
+12: 00 ; ^
+13: 00 ; ^
+14: 00 ; ^
diff --git a/shared/protocol-tests/get-node-d61c4e47-78ba-48cc-8000-000000000000.src b/shared/protocol-tests/get-node-d61c4e47-78ba-48cc-8000-000000000000.src
new file mode 100644
index 0000000..e0c71a0
--- /dev/null
+++ b/shared/protocol-tests/get-node-d61c4e47-78ba-48cc-8000-000000000000.src
@@ -0,0 +1,21 @@
+00: ff ; start byte
+01: 01 ; get node opcode
+02: 00 ; message id
+03: 00 ; ^
+04: 00 ; get all nodes (false)
+05: d6 ; uuid (d61c4e47-78ba-48cc-8000-000000000000)
+06: 1c ; ^
+07: 4e ; ^
+08: 47 ; ^
+09: 78 ; ^
+0a: ba ; ^
+0b: 48 ; ^
+0c: cc ; ^
+0d: 80 ; ^
+0e: 00 ; ^
+0f: 00 ; ^
+10: 00 ; ^
+11: 00 ; ^
+12: 00 ; ^
+13: 00 ; ^
+14: 00 ; ^
diff --git a/shared/protocol-tests/post-link-self-d61c4e47-78ba-48cc-8000-000000000000.src b/shared/protocol-tests/post-link-self-d61c4e47-78ba-48cc-8000-000000000000.src
new file mode 100644
index 0000000..e75953c
--- /dev/null
+++ b/shared/protocol-tests/post-link-self-d61c4e47-78ba-48cc-8000-000000000000.src
@@ -0,0 +1,38 @@
+00: ff ; start byte
+01: 01 ; post link opcode
+02: 00 ; message id
+03: 00 ; ^
+04: d6 ; button uuid (d61c4e47-78ba-48cc-8000-000000000000)
+05: 1c ; ^
+06: 4e ; ^
+07: 47 ; ^
+08: 78 ; ^
+09: ba ; ^
+0a: 48 ; ^
+0b: cc ; ^
+0c: 80 ; ^
+0d: 00 ; ^
+0e: 00 ; ^
+0f: 00 ; ^
+10: 00 ; ^
+11: 00 ; ^
+12: 00 ; ^
+13: 00 ; ^
+14: d6 ; light uuid (d61c4e47-78ba-48cc-8000-000000000000)
+15: 1c ; ^
+16: 4e ; ^
+17: 47 ; ^
+18: 78 ; ^
+19: ba ; ^
+1a: 48 ; ^
+1b: cc ; ^
+1c: 80 ; ^
+1d: 00 ; ^
+1e: 00 ; ^
+1f: 00 ; ^
+20: 00 ; ^
+21: 00 ; ^
+22: 00 ; ^
+23: 00 ; ^
+24: 01 ; add (true, create link)
+25: 00 ; link type (0x00 = toggle)