MKRNB - 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.