|  Developer
Updated on November 22, 2021

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
Edit
Edit
				
					{
    "method": "hub.network.modem.pin_code.set",
    "id": "_ID_",
    "params": {
        "interfaceId" : "mobile0",
        "pinCodeOld": "1234",
        "pinCodeNew" : "4321"
    }
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "result": {}
}