From 9f6f4e08a2af0364c59e8095c9e21de1e07fd48d Mon Sep 17 00:00:00 2001 From: "karl.hudgell" Date: Tue, 26 Oct 2021 15:40:35 +0100 Subject: [PATCH] shell --- server.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server.py b/server.py index 8b569c1..f6e6942 100644 --- a/server.py +++ b/server.py @@ -40,6 +40,7 @@ def hello(): result = subprocess.run( [f"gatttool -i hci0 -b b2:3b:03:00:14:d6 --char-write-req -a 0x0009 -n {str}"], stdout=subprocess.PIPE, + shell=True, ).stdout.decode("utf-8") if result != "Characteristic value was written successfully": raise Exception("Didn't work")