command
Description:
[ Version ( since = "1.0" ) ]
public async string command (string cmd, uint timeout, Cancellable? cancellable) throws Error
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 thread-default main loop 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.
Parameters:
this |
A Modem. |
cmd |
AT command to run. |
timeout |
Maximum time to wait for the response, in seconds. |
cancellable |
A Cancellable or |
callback |
A TaskReadyCallback to call when the request is satisfied or |
user_data |
User data to pass to |