PosSharp v1.2.0 API Reference
---
#### [PosSharp\.Core](PosSharp.Core 'PosSharp\.Core')
### [PosSharp\.Core](PosSharp.Core 'PosSharp\.Core').[UposDeviceBase](PosSharp.Core.UposDeviceBase 'PosSharp\.Core\.UposDeviceBase')
## UposDeviceBase\.DirectIOAsync\(int, int, object, CancellationToken\) Method
Sends a direct command to the device\.
```csharp
public System.Threading.Tasks.Task DirectIOAsync(int command, int data, object obj, System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));
```
#### Parameters
`command` [System\.Int32](https://learn.microsoft.com/en-us/dotnet/api/system.int32 'System\.Int32')
The command to send\.
`data` [System\.Int32](https://learn.microsoft.com/en-us/dotnet/api/system.int32 'System\.Int32')
Input/output data value\.
`obj` [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object')
Input/output object\.
`ct` [System\.Threading\.CancellationToken](https://learn.microsoft.com/en-us/dotnet/api/system.threading.cancellationtoken 'System\.Threading\.CancellationToken')
A token to cancel the operation\.
Implements [DirectIOAsync\(int, int, object, CancellationToken\)](https://learn.microsoft.com/en-us/dotnet/api/possharp.abstractions.iuposdevice.directioasync#possharp-abstractions-iuposdevice-directioasync(system-int32-system-int32-system-object-system-threading-cancellationtoken) 'PosSharp\.Abstractions\.IUposDevice\.DirectIOAsync\(System\.Int32,System\.Int32,System\.Object,System\.Threading\.CancellationToken\)')
#### Returns
[System\.Threading\.Tasks\.Task](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task 'System\.Threading\.Tasks\.Task')
A task representing the asynchronous operation\.