Skip to content

Conversation

@microbit-matt-hillsdon
Copy link
Contributor

@microbit-matt-hillsdon microbit-matt-hillsdon commented Jan 29, 2026

  • Add a new error code for pairing information lost on peripheral.
  • Add new native-only progress stages (ProgressStage.CheckingBond and ProgressStage.ResettingDevice).
  • Add abort signal to allow for stopping of scanning (and potentially other steps in future)

microbit-grace and others added 9 commits January 27, 2026 12:02
…via their options

const controller = new AbortController();
await connection.connect({ signal: controller.signal });
// or
await connection.flash(dataSource, { signal: controller.signal });

// To cancel:
controller.abort();

When aborted, the promise rejects with DeviceError({ code: "cancelled" }).

Limitations: Only cancels during the FindingDevice stage on native platforms at
the moment but it would be easy to extend to other safe cancellation points.

This replaces the previous abortDeviceScan() method, removing instance state and scoping abort to each operation.
@microbit-grace microbit-grace merged commit cc516fb into apps Jan 29, 2026
4 checks passed
@microbit-grace microbit-grace deleted the update-flows-alt branch January 29, 2026 20:27
@microbit-grace microbit-grace removed their request for review January 29, 2026 20:27
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.

3 participants