hub.network.modem.sim_lock.set
- Version: 1.0
- Turn on/off sim lock. If a SIM card is locked, a SIM PIN code is required before any operation with the SIM card can be performed. It’s possible to use a SIM card with a turned sim lock on, for this a hub.network.modem.try_connect request should be performed with a SIM PIN code provided, this PIN code is stored encrypted in the database and is used in future mobile interface autoconfiguration, otherwise a sim lock should be turned off.
Edit
Field | Type | Required | Description |
---|---|---|---|
interfaceId | string | + | Id of the interface (mobileX) |
pinCode | string | + | A SIM PIN code |
lock | bool | + | Whether a sim lock should be turned on of off |
Edit
- Return empty result or error.
Edit
Broadcast | Description |
---|---|
hub.network.modem.sim_lock.set.failed | Describe fail reason |
Edit
Code | Message | Data |
---|---|---|
-32500 | Invalid interface id | network.invalid.interface |
-32500 | Invalid pin code | network.modem.invalid.pin |