This commit is contained in:
karl.hudgell 2021-10-26 10:40:10 +01:00
parent f1147be300
commit 28436dbda3

View File

@ -6,7 +6,7 @@ app = Flask(__name__)
@app.route("/on") @app.route("/on")
def index(): def on():
os.system( os.system(
f"gatttool -i hci0 -b b2:3b:03:00:14:d6 --char-write-req -a 0x0009 -n cc2333" f"gatttool -i hci0 -b b2:3b:03:00:14:d6 --char-write-req -a 0x0009 -n cc2333"
) )
@ -14,7 +14,7 @@ def index():
@app.route("/off") @app.route("/off")
def index(): def off():
os.system( os.system(
f"gatttool -i hci0 -b b2:3b:03:00:14:d6 --char-write-req -a 0x0009 -n cc2433" f"gatttool -i hci0 -b b2:3b:03:00:14:d6 --char-write-req -a 0x0009 -n cc2433"
) )