factory_reset_sync


Description:

[ Version ( since = "1.0" ) ]
public bool factory_reset_sync (string code, Cancellable? cancellable = null) throws Error

Synchronously clears the modem's configuration (including persistent configuration and state), and returns the device to a factory-default state.

The calling thread is blocked until a reply is received. See factory_reset for the asynchronous version of this method.

Parameters:

this

A Modem.

code

Carrier-supplied code required to reset the modem.

cancellable

A Cancellable or null.

Returns:

true if the factory reset was successful, false if error is set.