full control

This commit is contained in:
2026-07-04 00:51:19 +02:00
parent a09e7a2244
commit 246ce939e7
3 changed files with 192 additions and 16 deletions
+19
View File
@@ -0,0 +1,19 @@
import socket
import sys
commands = {
"speed": 0x01,
"power": 0x02,
}
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect(("10.42.50.102", 1337))
command = sys.argv[1]
value = int(sys.argv[2])
print(hex(value))
_ = client.send(bytes([commands[command], value, 0xFF]))
client.close()