Skip to content

Breaking: Move serialWrite from DeviceConnection to USB only#107

Merged
microbit-matt-hillsdon merged 1 commit intoappsfrom
no-serial-for-bluetooth
Mar 3, 2026
Merged

Breaking: Move serialWrite from DeviceConnection to USB only#107
microbit-matt-hillsdon merged 1 commit intoappsfrom
no-serial-for-bluetooth

Conversation

@microbit-matt-hillsdon
Copy link
Contributor

Serial is a USB-specific concern — Bluetooth has UART (different data model) and the Bluetooth implementation was just a stub. Remove serialWrite from the base DeviceConnection interface and add it to MicrobitUSBConnection instead. The radio bridge intentionally does not expose serialWrite as it would conflict with the serial protocol used to relay radio messages.

Note this targets document-post-connection for now but will eventually be apps once those are reviewed.

…rfaces

Serial is a USB-specific concern — Bluetooth has UART (different data
model) and the Bluetooth implementation was just a stub. Remove
serialWrite from the base DeviceConnection interface and add it to
MicrobitUSBConnection instead. The radio bridge intentionally does not
expose serialWrite as it would conflict with the serial protocol used
to relay radio messages.
Base automatically changed from document-post-connection-state to apps March 3, 2026 15:44
@microbit-matt-hillsdon microbit-matt-hillsdon merged commit cb5df72 into apps Mar 3, 2026
3 of 4 checks passed
@microbit-matt-hillsdon microbit-matt-hillsdon deleted the no-serial-for-bluetooth branch March 3, 2026 15:45
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.

1 participant