The IMEI property returns the unique IMEI (International Mobile Equipment Identifier) code of the GSM Modem or Phone.
| Usage | strIMEI = ObjectName.IMEI |
| Value Type | String |
| Access Mode | Read Only |
| Remarks | Returns blank string if the modem does not support reading of IMEI property. |
| 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 = "COM2" objSMS.BaudRate = 57600 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. MsgBox objSMS.IMEI MsgBox objSMS.Manufacturer MsgBox objSMS.Model MsgBox objSMS.Revision ' Disconnect method is executed internally ' whenever the SMS object is terminated. Set objSMS = Nothing |