Skip to content

Fix log issue in BT tool#3

Open
ClaireHzl wants to merge 1 commit intomainfrom
2-error-log-in-bt-tool-on-wifi-connection
Open

Fix log issue in BT tool#3
ClaireHzl wants to merge 1 commit intomainfrom
2-error-log-in-bt-tool-on-wifi-connection

Conversation

@ClaireHzl
Copy link
Copy Markdown
Contributor

Initially, an “GATT operation failed” error log appeared even when the Wi-Fi connection was good, because nmcli was blocking the main thread for 6 seconds, causing a timeout on the BLE client, which is waiting for WriteValue to return.

Now:
Server: WriteValue launches the command in a thread and returns immediately. When the thread finishes, it sends a BLE signal (PropertiesChanged) to notify the client.

Client: Instead of waiting a fixed 200 ms and then reading, it subscribes to notifications and waits for the event until a 35-second timeout

@ClaireHzl ClaireHzl linked an issue Apr 2, 2026 that may be closed by this pull request
@ClaireHzl ClaireHzl requested a review from SteveNguyen April 2, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error log in BT tool on wifi connection

1 participant