DeviceExecuteAsynchronous
DeviceExecuteAsynchronous[device,"command",fun] initiates asynchronous execution of the specified command on a device, calling the handler function fun when an event occurs.
DeviceExecuteAsynchronous[device,"command",params,fun] executes the command with the parameters params.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.