|
|
@ -8,6 +8,7 @@ port = 48835
|
|
|
|
|
|
|
|
|
|
|
|
print(os.getcwd())
|
|
|
|
print(os.getcwd())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
with open("smp_coder/user.txt", "r") as f:
|
|
|
|
with open("smp_coder/user.txt", "r") as f:
|
|
|
|
user_id = f.read().strip()
|
|
|
|
user_id = f.read().strip()
|
|
|
|
user_id = user_id.split("=")[-1]
|
|
|
|
user_id = user_id.split("=")[-1]
|
|
|
@ -64,3 +65,7 @@ client.loop_stop()
|
|
|
|
client.disconnect()
|
|
|
|
client.disconnect()
|
|
|
|
|
|
|
|
|
|
|
|
print("收到响应,客户端退出。")
|
|
|
|
print("收到响应,客户端退出。")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
os.system("sudo myenv/bin/python3 smp_coder/extur_smp.py > logex.txt 2>&1 &")
|
|
|
|
|
|
|
|
print("启动树莓派拍照客户端成功。")
|
|
|
|
|
|
|
|
|
|
|
|