on/off
This commit is contained in:
parent
f1147be300
commit
28436dbda3
@ -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"
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user