DisableCheckPIN Property

Description:

The DisableCheckPIN property gets or sets a boolean value to define if the PIN status (i.e. SIM lock status) is checked whenever mCore™ connects to the serial port. Default value is False, which makes mCore™ check the PIN status of the SIM and if found to be waiting for PIN then the SIM is unlocked using the value set in the PIN property.

   

Usage ObjectName.DisableCheckPIN = blnDiableCheckPIN
Value Type Boolean
Access Mode Read/Write
Valid Values
  • True - Disables checking of PIN status of the SIM on connecting to the GSM modem
  • False - Enables checking of PIN status of the SIM on connecting to the GSM modem
Remarks
  • DisableCheckPIN property should be set to True only if it is sure that the application will never be used with a PIN protected SIM
  • Certain modems do not support checking of PIN status of the SIM and for such modems it is useful to set the DisableCheckPIN property as True.

Usage Example:

Visual Basic / ASP (VBScript)
Dim objSMS As mCore.SMS
Set objSMS = New mCore.SMS
' You can also use Set objSMS = CreateObject("mCore.SMS")
' In case of ASP (VBScript) to create object use
' Set objSMS = Server.CreateObject("mCore.SMS")
' In ASP use Response.Write instead of MsgBox
objSMS.Port = "COM3"
objSMS.BaudRate = 19200
objSMS.Parity = "N"
objSMS.DataBits = 8
objSMS.StopBits = "1"
' It is not necessary to execute the 'Connect' method.
' Connection state is detected internally by mCore and
' the 'Connect' method is executed accordingly.
objSMS.DisableCheckPIN = True
MsgBox objSMS.SignalStrength

objSMS.SendSMS "+919873094767", "This is a test message!"

If Not objSMS.IsError(True, "Test Application") Then
     MsgBox "Message Sent!"
End If
' Disconnect method is executed internally
' whenever the SMS object is terminated.
Set objSMS = Nothing

  

Copyright © IG Logix Softech Pvt Ltd, All Rights Reserved