SignalStrength Property

Description:

The SignalStrength property returns the GSM network field strength in percentage i.e. scale of 0 to 100 where 0 corresponds to signal strength of -113dBm or less and 100 corresponds to signal strength value of -51dBm or more.

   

Usage intSignalStrength = ObjectName.SignalStrength
Value Type Integer
Access Mode Read Only
Valid Values
  • 0 to 100 (0 = -113dBm or less; 100 = -51dBm or more)
  • -1 (signal strength not known or not detectable)
Remarks The SignalStrengthDB property returns the signal strength value in dBm

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.PIN = "1234"
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