包含本次会话修复: - iOS clickReady 警告 bug(默认 false 永远显示) - BLE 'handle is invalid' 排查(stale handle auto-retry 实验 + 回退) 项目结构: - glass-mouse/: 眼镜端原生 Kotlin App,前台服务 MouseService + 自定义 BLE GATT 桥接 ProxyBleServer + 无障碍 GestureDescription 注入 - ios/GlassRemote/: iPhone 端 SwiftUI + CoreBluetooth,通过 BLE 直连眼镜 - HTTP 投屏服务(:8000) 接 PPT/WPS 备注宏 POST 推送 技术栈: Android Kotlin (gradle 8.14.4, compileSdk 34), iOS Swift 5.10 (Xcode 26.5)
24 lines
675 B
Python
24 lines
675 B
Python
import websocket, json, time, sys
|
|
|
|
IPS = ["192.168.1.188", "192.168.1.18", "192.168.1.1"]
|
|
for ip in IPS:
|
|
ws_url = "ws://%s:8080" % ip
|
|
try:
|
|
ws = websocket.create_connection(ws_url, timeout=5)
|
|
print("WS_OK", ip)
|
|
try:
|
|
print("HELLO", ws.recv())
|
|
except Exception as e:
|
|
print("HELLO_FAIL", repr(e))
|
|
ws.send(json.dumps({"type": "cursor", "visible": True}))
|
|
time.sleep(0.8)
|
|
try:
|
|
print("ACK", ws.recv())
|
|
except Exception:
|
|
print("NO_ACK_NORMAL")
|
|
ws.close()
|
|
sys.exit(0)
|
|
except Exception as e:
|
|
print("FAIL", ip, repr(e))
|
|
print("ALL_FAIL")
|