Skip to content

Commit

Permalink
Merge pull request #5 from ArcetriAdaptiveOptics/discovery
Browse files Browse the repository at this point in the history
UDP discovery
  • Loading branch information
alfiopuglisi authored Jul 3, 2024
2 parents 53b1bbe + 5535be7 commit 7ba104a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysilico/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ def camera(hostname, port):

def list_cameras(timeout_in_seconds=2):
from plico.utils.discovery_server import DiscoveryClient
return DiscoveryClient().run(timeout_in_seconds=timeout_in_seconds)
return DiscoveryClient().run(timeout_in_seconds=timeout_in_seconds, filter={'server_type': 'pysilico'})

def find(camera_name, timeout_in_seconds=2):
from plico.utils.discovery_server import DiscoveryClient
server_info = DiscoveryClient().run(camera_name, timeout_in_seconds)
server_info = DiscoveryClient().run(camera_name, timeout_in_seconds, filter={'server_type': 'pysilico'})
return camera(server_info.host, server_info.port)

0 comments on commit 7ba104a

Please sign in to comment.