gsmSetPIN (Function) |
Top Previous Next |
This sets the PIN code to use for accessing the GSM module next time the GSM module is powered on by using the gsmPower() function. An empty string will disable the use of PIN code. Only a PIN code with 4 characters is supported.
The device must be reset for the new PIN code to take effect.
This function does the same as the Device-> Configuration -> GSM Parameters -> PIN code page.
Note: this function does not enable or disable the PIN code on the SIM card - to do this use the gsmSimSetPIN function.
Input: pin : STRING PIN code to use for accessing the SIM card.
Returns: None.
Declaration: FUNCTION gsmSetPIN;
Example: INCLUDE rtcu.inc |