DeviceManager.sendDeviceCommand Method

Module: DeviceManager

Definition

(C++/dotnet): Sends a command directly to a device.

public static void SendDeviceCommand(int deviceId, string cmd, IntPtr arg=default(IntPtr), IntPtr result=default(IntPtr))

Parameters

deviceId int
in The target device’s identifier.

cmd string
in The command string.

arg IntPtr
in Optional command argument.

result IntPtr
in Optional pointer for the command result.

Exceptions

An error has occurred during Devices Library execution.
int id3DevicesDeviceManager_SendDeviceCommand (
    int deviceId,
    const char * cmd,
    void * arg,
    void * result)

Parameters

deviceId int
in The target device’s identifier.

cmd const char *
in The command string.

arg void *
in Optional command argument.

result void *
in Optional pointer for the command result.

Returns

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