Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: show the Button status for the include robot extension #81

Merged
merged 2 commits into from
Jun 18, 2024

Conversation

dido18
Copy link
Contributor

@dido18 dido18 commented Jun 10, 2024

The connection button status was shared among the Arduino Include robot and the BLE Arduino Sense extensions.

Add the button to the Arduino include robot extension.

image

NOTE: the shared DEVICE has been removed.

@dido18 dido18 force-pushed the inlcude-robot-show-status-button branch from f47a3de to d1d0fd6 Compare June 10, 2024 17:54
@dido18 dido18 marked this pull request as ready for review June 10, 2024 17:55
@@ -88,6 +85,8 @@ class IncludeRobot {
* @type {Runtime}
*/
this._runtime = runtime;

this._device = new Peripheral(this._runtime, IncludeRobot.EXTENSION_ID);
Copy link
Contributor

Choose a reason for hiding this comment

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

I will keep the same device singleton at least, in this way we can still reuse the same connection for both extension

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I hoped but unfortunately we can't.
The Peripheral needs the ID of the extension to "register" the popup to the button.

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think that this is an issue, you can still reuse the connection.

Copy link
Contributor Author

@dido18 dido18 Jun 14, 2024

Choose a reason for hiding this comment

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

What is the objective to maintain a single BLE connection?
If it is related to be able to manage both the extensions, the same result could be obtained even with two different connections. This is possible by connecting both extensions.

This is an example:

  • I connected both the extensions to the robot
  • I managed to see the data coming from the BLE Sense and to send the command.

image

@dido18 dido18 merged commit 82a5a7a into main Jun 18, 2024
2 checks passed
@dido18 dido18 deleted the inlcude-robot-show-status-button branch June 18, 2024 09:52
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.

None yet

2 participants