Skip to content

Conversation

@mirkoCrobu
Copy link
Contributor

Motivation

A board connected via both USB and Network currently shows up as two separate devices in the board list. This makes it difficult for a client application to know it is the same physical board.

We need a way to "deduplicate" these entries by providing a common identifier, allowing the client to show just one entry for that board.

Change description

Additional Notes

Reviewer checklist

  • PR addresses a single concern.
  • PR title and description are properly filled.
  • Changes will be merged in main.
  • Changes are covered by tests.
  • Logging is meaningful in case of troubleshooting.

@mirkoCrobu mirkoCrobu requested review from a team and lucarin91 November 11, 2025 16:16
@mirkoCrobu mirkoCrobu added the enhancement New feature or request label Nov 11, 2025
@mirkoCrobu
Copy link
Contributor Author

@lucarin91 How can I test it?
How App Lab calls this func?

@lucarin91
Copy link
Contributor

@lucarin91 How can I test it? How App Lab calls this func?

Probably the best solution is just to write a test or an example that uses that library

boards = append(boards, Board{
Protocol: NetworkProtocol,
Address: port.GetPort().GetAddress(),
Serial: serial,
Copy link
Contributor

Choose a reason for hiding this comment

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

In network mode you need to get it like the hostname

port.GetPort().GetProperties()["serial_number"];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants