Devices

abb_rws_client_python_rw6.rws.devices

RWS module: RobotWare Services → Devices service → Devices tree information

1:1 mirror of the ABB RobotWare 6 REST API. Each function maps to exactly one HTTP endpoint. No composed logic — see highlevel/ for wrappers.

get_devices_tree_information(client, lang=None) async

Devices tree information.

Route: GET /rw/devices ABB constraints: Not supported in bootserver mode.

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

  • lang (str | None, default: None ) –

    Query parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 200.

Raises:
Example
>>> await get_devices_tree_information(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/devices.py
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
async def get_devices_tree_information(
    client: RWSClient,
    lang: str | None = None,
) -> httpx.Response:
    """
    Devices tree information.

    Route: ``GET /rw/devices``
    ABB constraints: Not supported in bootserver mode.

    Args:
        client: Open RWSClient instance.
        lang: Query parameter. Optional.

    Returns:
        Raw HTTP response. Expected success: HTTP 200.

    Raises:
        RWSAuthenticationError: On HTTP 401.
        RWSNotFoundError: On HTTP 404.
        RWSHTTPError: On any other HTTP >= 400.
        # ABB codes: BAD_REQUEST(400), NOT_FOUND(404)

    Example:
        ```python
        >>> await get_devices_tree_information(client)
        <Response [200]>
        ```
    """
    return await client.get(
        "/rw/devices",
        params={k: v for k, v in {"lang": lang}.items() if v is not None},
    )