connect#
method
- UC480Client.connect(name: str, ns_host: str = None, ns_port: float = None) None#
Connect to a remote PyroLab-hosted UC480 camera.
Assumes the nameserver where the camera is registered is already configured in the environment.
- Parameters:
- namestr
The name used to register the camera on the nameserver.
Examples
>>> from pyrolab.api import NameServerConfiguration >>> from pyrolab.drivers.cameras.thorcam import ThorCamClient >>> nscfg = NameServerConfiguration(host="my.nameserver.com") >>> nscfg.update_pyro_config() >>> cam = ThorCamClient() >>> cam.connect("camera_name")