Reference   Language | Libraries | Comparison | Changes

MKRNB : NBPin class

isPIN()

Description

Checks the SIM card to see if it is locked with a PIN.

Syntax

pin.isPIN()

Parameters

none

Returns

int : 0 if PIN lock is off, 1 if PIN lock is on, -1 if PUK lock is on, -2 if error exists.

See Also


Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.