Skip to content

Commit 2ee6aec

Browse files
authored
Merge pull request #169 from luxonis/multiple_hosts_fix_docs
Update multiple.rst
2 parents e68c18d + d3a75e1 commit 2ee6aec

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

docs/source/tutorials/multiple.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,16 @@ For example, if the first device is desirable from above use the following code:
4747

4848
.. code-block:: python
4949
50-
device = depthai.Device.getDeviceByMxId("14442C10D13EABCE00")
50+
found, device_info = depthai.Device.getDeviceByMxId("14442C10D13EABCE00")
51+
52+
if not found:
53+
raise RuntimeError("Device not found!")
54+
55+
You can then use the `device_info` to specify on which device you want to run your pipeline:
56+
57+
.. code-block:: python
58+
59+
with depthai.Device(pipeline, device_info) as device:
5160
5261
And you can use this code as a basis for your own use cases, such that you can run differing neural models
5362
on different DepthAI/uAI models.

0 commit comments

Comments
 (0)