Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Get device by serial
Browse files Browse the repository at this point in the history
Summary: Introduce a new API to obtain devices by serial, if any.

Reviewed By: antonk52

Differential Revision: D55797515

fbshipit-source-id: a341d08f75e6f7ed9f989acee809c7066212932b
  • Loading branch information
lblasa authored and facebook-github-bot committed Apr 22, 2024
1 parent b5f41df commit 1757a18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions desktop/flipper-server/src/FlipperServerImpl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,10 @@ export class FlipperServerImpl implements FlipperServer {
}
}

getDeviceWithSerial(serial: string): ServerDevice | undefined {
return this.devices.get(serial);
}

getDeviceSerials(): string[] {
return Array.from(this.devices.keys());
}
Expand Down

0 comments on commit 1757a18

Please sign in to comment.