gsmSimSetPIN (Function) |
Top Previous Next |
This function enables or disables the PIN code on the SIM card. Optionally the PIN code can be changed when enabled. Only PIN codes with 4 characters are supported.
The device must be reset for the changes to take effect.
Note: when the PIN code is enabled and/or changed, it is required to call gsmSetPIN so the device knows to use the correct PIN code when accessing the GSM module.
Input: enable : BOOL
pin : STRING The current PIN code to use for accessing the SIM card. Note: the correct PIN code is required when enabling and disabling.
pin_new : STRING The new PIN code. Note: if this is empty, the PIN code will not be changed.
Returns:
Declaration: FUNCTION gsmSimSetPIN : INT;
Example: INCLUDE rtcu.inc |