Skip to content

Conversation

@sumitdas01
Copy link

This PR introduces Bluetooth timeout support and a new function for delimiter-based byte transmission.

  1. Added ConnectionTimeout, ReadTimeout, and WriteTimeout properties in BluetoothConnectionBase to allow safer and more predictable communication with slow devices.

  2. Added a new block:
    SendBytesWithDelimiter(YailList list, String delimiter)
    This sends all bytes in the list followed by a single delimiter byte (supports decimal or hex like “0x0A”).

Files updated:

  • BluetoothConnectionBase.java
  • BluetoothClient.java
  • BluetoothServer.java
  • ErrorMessages.java

Fixes #3655
Resolves #3655

@AppInventorWorkerBee
Copy link
Collaborator

Can one of the admins verify this patch?

1 similar comment
@AppInventorWorkerBee
Copy link
Collaborator

Can one of the admins verify this patch?

@SusanRatiLane
Copy link
Contributor

@AppInventorWorkerBee ok to test

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.

Add Timeout Handling to Bluetooth Components to Prevent Indefinite Hangs

3 participants