Skip to content

Gateway

Gateways resource for LoRaWAN gateway management.

SyncGateways

SyncGateways(client: SyncClient)

Bases: BaseResource['SyncClient']

Gateways resource for LoRaWAN gateway management.

Methods:

  • create

    Create a new gateway.

  • delete

    Delete a gateway.

  • get

    Retrieve a gateway by ID or Node ID.

  • get_all

    List all gateways.

  • get_connection_status

    Retrieve gateways grouped by connection status.

  • get_devices

    Retrieve devices seen by a gateway.

  • get_events

    Retrieve gateway events.

  • get_health

    Retrieve gateways grouped by health status.

  • get_statistics

    Retrieve gateway statistics.

  • patch

    Partially update a gateway.

  • update

    Update a gateway (full replacement).

create

create(data: GatewayCreate) -> str

Create a new gateway.

Parameters:

Returns:

  • str ( str ) –

    The ID of the newly created gateway.

delete

delete(gateway_id: str) -> None

Delete a gateway.

Parameters:

  • gateway_id

    (str) –

    The unique identifier of the gateway to delete.

Returns:

  • None

    None

get

Retrieve a gateway by ID or Node ID.

Parameters:

  • gateway_id

    (str) –

    The unique identifier or Node ID of the gateway.

Returns:

  • GatewayInstance ( GatewayInstance ) –

    The gateway instance matching the given ID.

get_all

get_all() -> list[GatewayInstance]

List all gateways.

Returns:

get_connection_status

get_connection_status() -> GatewaysConnectionResponse

Retrieve gateways grouped by connection status.

Returns:

get_devices

get_devices(
    gateway_id: str, days: int | None = None
) -> list[GatewayDevice]

Retrieve devices seen by a gateway.

Parameters:

  • gateway_id

    (str) –

    The unique identifier of the gateway.

  • days

    (int | None, default: None ) –

    Optional number of days to look back.

Returns:

get_events

get_events(
    node_id: str,
    start_time: str | None = None,
    end_time: str | None = None,
) -> GatewayEventsResponse

Retrieve gateway events.

Parameters:

  • node_id

    (str) –

    The node ID of the gateway.

  • start_time

    (str | None, default: None ) –

    Optional ISO 8601 formatted start time.

  • end_time

    (str | None, default: None ) –

    Optional ISO 8601 formatted end time.

Returns:

get_health

get_health() -> GatewaysHealthResponse

Retrieve gateways grouped by health status.

Returns:

get_statistics

get_statistics(gateway_id: str) -> GatewayStatistics

Retrieve gateway statistics.

Parameters:

  • gateway_id

    (str) –

    The unique identifier of the gateway.

Returns:

patch

Partially update a gateway.

Parameters:

  • gateway_id

    (str) –

    The unique identifier of the gateway.

  • data

    (GatewayPatch) –

    The partial gateway data to update.

Returns:

  • GatewayInstance ( bool ) –

    The updated gateway instance.

update

Update a gateway (full replacement).

Parameters:

  • gateway_id

    (str) –

    The unique identifier of the gateway.

  • data

    (GatewayUpdate) –

    The complete gateway data for replacement.

Returns:

  • GatewayInstance ( bool ) –

    The updated gateway instance.

AsyncGateways

AsyncGateways(client: AsyncClient)

Bases: BaseResource['AsyncClient']

Async gateways resource for LoRaWAN gateway management.

Methods:

  • create

    Create a new gateway.

  • delete

    Delete a gateway.

  • get

    Retrieve a gateway by ID or Node ID.

  • get_all

    List all gateways.

  • get_connection_status

    Retrieve gateways grouped by connection status.

  • get_devices

    Retrieve devices seen by a gateway.

  • get_events

    Retrieve gateway events.

  • get_health

    Retrieve gateways grouped by health status.

  • get_statistics

    Retrieve gateway statistics.

  • patch

    Partially update a gateway.

  • update

    Update a gateway (full replacement).

create async

create(data: GatewayCreate) -> str

Create a new gateway.

Parameters:

Returns:

  • str ( str ) –

    The ID of the newly created gateway.

delete async

delete(gateway_id: str) -> None

Delete a gateway.

Parameters:

  • gateway_id

    (str) –

    The unique identifier of the gateway to delete.

Returns:

  • None

    None

get async

Retrieve a gateway by ID or Node ID.

Parameters:

  • gateway_id

    (str) –

    The unique identifier or Node ID of the gateway.

Returns:

  • GatewayInstance ( GatewayInstance ) –

    The gateway instance matching the given ID.

get_all async

get_all() -> list[GatewayInstance]

List all gateways.

Returns:

get_connection_status async

get_connection_status() -> GatewaysConnectionResponse

Retrieve gateways grouped by connection status.

Returns:

get_devices async

get_devices(
    gateway_id: str, days: int | None = None
) -> list[GatewayDevice]

Retrieve devices seen by a gateway.

Parameters:

  • gateway_id

    (str) –

    The unique identifier of the gateway.

  • days

    (int | None, default: None ) –

    Optional number of days to look back.

Returns:

get_events async

get_events(
    node_id: str,
    start_time: str | None = None,
    end_time: str | None = None,
) -> GatewayEventsResponse

Retrieve gateway events.

Parameters:

  • node_id

    (str) –

    The node ID of the gateway.

  • start_time

    (str | None, default: None ) –

    Optional ISO 8601 formatted start time.

  • end_time

    (str | None, default: None ) –

    Optional ISO 8601 formatted end time.

Returns:

get_health async

get_health() -> GatewaysHealthResponse

Retrieve gateways grouped by health status.

Returns:

get_statistics async

get_statistics(gateway_id: str) -> GatewayStatistics

Retrieve gateway statistics.

Parameters:

  • gateway_id

    (str) –

    The unique identifier of the gateway.

Returns:

patch async

Partially update a gateway.

Parameters:

  • gateway_id

    (str) –

    The unique identifier of the gateway.

  • data

    (GatewayPatch) –

    The partial gateway data to update.

Returns:

  • bool ( bool ) –

    True if the update was successful, False otherwise.

update async

Update a gateway (full replacement).

Parameters:

  • gateway_id

    (str) –

    The unique identifier of the gateway.

  • data

    (GatewayUpdate) –

    The complete gateway data for replacement.

Returns:

  • bool ( bool ) –

    True if the update was successful, False otherwise.

Request and response types: Gateway models.