Add note on generic vs device specific Device operator#14
Open
bruno-f-cruz wants to merge 1 commit intomainfrom
Open
Add note on generic vs device specific Device operator#14bruno-f-cruz wants to merge 1 commit intomainfrom
bruno-f-cruz wants to merge 1 commit intomainfrom
Conversation
glopesdev
reviewed
Jun 4, 2025
| The [`Device`](xref:Bonsai.Harp.Device) operator is the first node you will probably add to your workflow when using any Harp Device. This source is responsible for establishing a serial connection link with the device and providing an interface that can be used to send and receive messages, represented by [`HarpMessage`](xref:Bonsai.Harp.HarpMessage) objects. Messages sent from the host application into the node represent commands to be sent to the device, whereas message objects emitted by the device node represent command replies or events sent by the device to the host. | ||
|
|
||
| > [!Note] | ||
| > Using the high-level interface `Device` operator is the recommended way to connect to a Harp device. This operator runs an additional validation step that ensures that the device you are attempting to connect to matches the interface you are trying to use. For cases where this check is not necessary, you can use the generic Device operator, which is available in the Bonsai.Harp package. |
Contributor
There was a problem hiding this comment.
Suggested change
| > Using the high-level interface `Device` operator is the recommended way to connect to a Harp device. This operator runs an additional validation step that ensures that the device you are attempting to connect to matches the interface you are trying to use. For cases where this check is not necessary, you can use the generic Device operator, which is available in the Bonsai.Harp package. | |
| > Using the `Device` operator provided by each device-specific interface package is the recommended way to connect to a Harp device. This operator runs additional validation steps to ensure the interface matches the device you are attempting to connect to. |
Simplified wording and focused recommendation only on the device-specific operator. I was thinking we might want to keep the discussion about the generic Device operator to a different section (e.g. development and debugging) to avoid confusing people.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.