try to add cross device stuff

This commit is contained in:
Kavish Devar
2025-01-21 21:29:16 +05:30
parent 3a3074f592
commit 938278b0b5
4 changed files with 31 additions and 1 deletions

View File

@@ -322,6 +322,11 @@ public slots:
socket->close();
socket = nullptr;
}
if (phoneSocket && phoneSocket->isOpen()) {
QByteArray airpodsDisconnectedPacket = QByteArray::fromHex("00010000");
phoneSocket->write(airpodsDisconnectedPacket);
LOG_DEBUG("AIRPODS_DISCONNECTED packet written: " << airpodsDisconnectedPacket.toHex());
}
}
void connectToDevice(const QBluetoothDeviceInfo &device) {