DeviceManager.getDeviceModelName Method

Module: DeviceManager

Definition

Gets the model name of a device.

get_device_model_name(device_id: int) -> str

Parameters

device_id int
in The device’s identifier.

Returns

str
The model name of the device.

Exceptions

An error has occurred during Devices Library execution.
static String getDeviceModelName(int deviceId)

Parameters

deviceId int
in The device’s identifier.

Returns

String
The model name of the device.

Exceptions

An error has occurred during Devices Library execution.
public static string GetDeviceModelName(int deviceId)

Parameters

deviceId int
in The device’s identifier.

Returns

string
The model name of the device.

Exceptions

An error has occurred during Devices Library execution.
public static String getDeviceModelName(int deviceId) throws DevicesException

Parameters

deviceId int
in The device’s identifier.

Returns

String
The model name of the device.

Exceptions

An error has occurred during Devices Library execution.
int id3DevicesDeviceManager_GetDeviceModelName (
    int deviceId,
    char * modelName,
    int * modelNameSize)

Parameters

deviceId int
in The device’s identifier.

modelName char *
out The model name of the device.

modelNameSize int *
in Size of the ‘modelName’ buffer. Receives the minimum required buffer size to hold the ‘modelName’ string if the given one is too small (including the terminating NULL character), otherwise receives the number of characters in ‘modelName’ (excluding terminating NULL character).

Returns

int
An error code.
See id3DevicesError file for the list of possible error codes.