hub.network.modem.pin_code.set
- Version: 1.0
- Change a SIM pin code for a specified ‘mobile’ interface.
Edit
| Field | Type | Required | Description |
|---|---|---|---|
| interfaceId | string | + | Id of the interface (mobileX) |
| pinCodeOld | string | + | An old SIM pin code to pass an authentication |
| pinCodeNew | string | + | A new SIM pin code to set |
Edit
- Return empty result or error.
Edit
| Broadcast | Description |
|---|---|
| hub.network.modem.pin_code.set.failed | Describe fail reason |
Edit
| Code | Message | Data |
|---|---|---|
| -32500 | Invalid interface id | network.invalid.interface |
| -32500 | Invalid pin code | network.modem.invalid.pin |
| -32500 | Not allowed new pin code | network.modem.noallowed.pin |