factory_reset
Description:
[ Version ( since = "1.0" ) ]
public async bool factory_reset (string code, Cancellable? cancellable) throws Error
public async bool factory_reset (string code, Cancellable? cancellable) throws Error
Asynchronously clears the modem's configuration (including persistent configuration and state), and returns the device to a factory-default state.
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 factory_reset.end to get the result of the operation.
See factory_reset_sync for the synchronous, blocking version of this method.
Parameters:
this |
A Modem. |
code |
Carrier-supplied code required to reset the modem. |
cancellable |
A Cancellable or |
callback |
A TaskReadyCallback to call when the request is satisfied or |
user_data |
User data to pass to |