DeviceManager.getDeviceName Method¶
Module: DeviceManager
Definition¶
Obtains the name of a device given its ID.
get_device_name(device_id: int) -> str
Parameters
device_id
intin The device’s identifier.
Returns
str
The name of the device.
Exceptions
An error has occurred during Devices Library execution.
static String getDeviceName(int deviceId)
Parameters
deviceId
intin The device’s identifier.
Returns
String
The name of the device.
Exceptions
An error has occurred during Devices Library execution.
public static string GetDeviceName(int deviceId)
Parameters
deviceId
intin The device’s identifier.
Returns
string
The name of the device.
Exceptions
An error has occurred during Devices Library execution.
public static String getDeviceName(int deviceId) throws DevicesException
Parameters
deviceId
intin The device’s identifier.
Returns
String
The name of the device.
Exceptions
An error has occurred during Devices Library execution.
int id3DevicesDeviceManager_GetDeviceName (
int deviceId,
char * name,
int * nameSize)
Parameters
deviceId
intin The device’s identifier.name
char *out The name of the device.nameSize
int *in Size of the ‘name’ buffer. Receives the minimum required buffer size to hold the ‘name’ string if the given one is too small (including the terminating NULL character), otherwise receives the number of characters in ‘name’ (excluding terminating NULL character).
Returns