Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Conversation

@philon-
Copy link
Contributor

@philon- philon- commented Jun 3, 2025

Our previous BLE transport polled the device every 1s, which was changed to an event driven approach in the recent refactoring. The event driven approach did however not work as expected, since the first read needs to be triggered manually by the client.

As a result of this, meshtastic/web is still dependent on old meshtastic/js package instead of using the new, refactored package meshtastic/transport-web-bluetooth.

This PR adds a _isFirstWrite flag to trigger a one‐time “first read” after sending the initial wantConfigId packet. This is a mirror of the iOS logic which issues a one‐off read immediately after sending its “wantConfigId” request.

Subsequent reads are triggered as they should by the event.

Testing have been done on a nRF based device on firmware 2.6.4 together with modified web client which uses the new package.

Copy link
Collaborator

@danditomaso danditomaso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@danditomaso danditomaso merged commit bd57430 into meshtastic:master Jun 5, 2025
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants