Skip to main content

Classes

DevicesApi


METHODS

create_device

Create device Create a new device. If you set ifNotExists to false and the device already exists, the deviceType will be overwritten.

delete_device

Delete device Delete a device. When this device sends a new message to ingestion or connects to remote management the device will be recreated.

get_device

Get device Retrieves a single device

get_impulse_records

Get impulse records Retrieve impulse records from the device.

keep_device_debug_stream_alive

Keep debug stream alive If you have opened a debug stream, ping this interface every 10 seconds to let us know to keep the debug stream open.

list_devices

Lists devices List all devices for this project. Devices get included here if they connect to the remote management API or if they have sent data to the ingestion API and had the device_id field set.

rename_device

Rename device Set the current name for a device.

request_device_model_update

Trigger model update request Trigger a model update request, this only works for devices connected to remote management server in inference mode.

start_device_inference_debug_stream

Start inference debug stream Start an inference debug stream for this device with inference results (and images if a camera is attached). Updates are streamed through the websocket API. A keep-alive token is returned, you’ll need to ping the API (with keepDeviceDebugStreamAlive) every 10 seconds (so we know when the client is disconnected).

start_device_snapshot_debug_stream

Start snapshot debug stream Start a snapshot debug stream for this device with a current camera view. Updates are streamed through the websocket API. A keep-alive token is returned, you’ll need to ping the API (with keepDeviceDebugStreamAlive) every 10 seconds (so we know when the client is disconnected).

start_sampling

Start sampling Start sampling on a device. This function returns immediately. Updates are streamed through the websocket API.

stop_device_debug_stream

Stop debug stream If you have opened a debug stream, close it.