DeviceManager.getDeviceName Method¶
Module: DeviceManager
Definition¶
Obtains the name of a device given its ID.
get_device_name(device_id: int) -> str
Parameters
device_idintin The device’s identifier.
Returns
strThe name of the device.
Exceptions
An error has occurred during Devices Library execution.
static String getDeviceName(int deviceId)
Parameters
deviceIdintin The device’s identifier.
Returns
StringThe name of the device.
Exceptions
An error has occurred during Devices Library execution.
public static string GetDeviceName(int deviceId)
Parameters
deviceIdintin The device’s identifier.
Returns
stringThe name of the device.
Exceptions
An error has occurred during Devices Library execution.
public static String getDeviceName(int deviceId) throws DevicesException
Parameters
deviceIdintin The device’s identifier.
Returns
StringThe name of the device.
Exceptions
An error has occurred during Devices Library execution.
int id3DevicesDeviceManager_GetDeviceName (
    int deviceId,
    char * name,
    int * nameSize)
Parameters
deviceIdintin The device’s identifier.namechar *out The name of the device.nameSizeint *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