[ Version ( since = "1.0" ) ]
public async string command (string cmd, uint timeout, Cancellable? cancellable) throws Error
Asynchronously runs an AT command in the modem.
When the operation is finished, callback will be invoked in the <link linkend="g-main-context-push-thread-default">
thread-default main loop</link> of the thread you are calling this method from. You can then call command.end
to get the result of the operation.
See command_sync for the synchronous, blocking version of this method.
| this |
A Modem. |
| cmd |
AT command to run. |
| timeout |
Maximum time to wait for the response, in seconds. |
| cancellable |
A Cancellable or null. |
| callback |
A TaskReadyCallback to call when the request is satisfied or null. |
| user_data |
User data to pass to |