GsmModemDetectGsm(String, SerialBaudRate) Method |
Detects the first GSM modem connected to the system and returns as output parameters
the communication port and baud rate.
Namespace: ZylSoft.GsmAssembly: ZylGsm (in ZylGsm.dll) Version: 1.2.0.21451
XMLNS for XAML: Not mapped to an xmlns.
Syntaxpublic bool DetectGsm(
out string port,
out SerialBaudRate baudRate
)
Public Function DetectGsm (
<OutAttribute> ByRef port As String,
<OutAttribute> ByRef baudRate As SerialBaudRate
) As Boolean
Dim instance As GsmModem
Dim port As String
Dim baudRate As SerialBaudRate
Dim returnValue As Boolean
returnValue = instance.DetectGsm(port,
baudRate)
public:
bool DetectGsm(
[OutAttribute] String^% port,
[OutAttribute] SerialBaudRate% baudRate
)
member DetectGsm :
port : string byref *
baudRate : SerialBaudRate byref -> bool Parameters
- port String
-
The serial port name where the GSM modem is connected to.
- baudRate SerialBaudRate
-
Baud rate of the communication.
Return Value
Boolean
Returns true, if a GSM modem was detected, otherwise false.
See Also