3.1.9 SendCommander
Description
Sends a command to the Commander core device through the open path device, which is specified in the parameter pHandle and expects no response from the device. The command to be sent must be passed as a string in parameter command. Returns 1 if successful, 0 if unsuccessful.
The command buffer must be smaller than 64 bytes in length.
Arguments
pHandle
Type: CommanderDeviceHandle*
Pointer to a device‑handle variable.
command
Type: char*
ASCII command string to be sent to the Commander.
Return Value
Type: Int
|
Value |
Meaning |
|
0 |
Failure |
|
1 |
Success |
|
Other (negative) |
Host communication failed (see Communication Error Codes) |
Examples
- Python
|
api = DLLInterface() # Send to Commander command = 'VER' return = api.dll.SendCommander(handle, command.encode('utf-8')) if return: print(f"Sent: {command}") |
REPOSITORY PLACEHOLDER LINK
< Previous | Topic Home | Home | Next >