Whisperstream Research Group - SerialComm GSM SDK Documentation

SerialIO.SendCommand Method (String, String[], Int32)

sends a command synchronously to the serial port and waits for one of the responses contained in endTokens. If no matching response is found before commandTimeout milliseconds elapse a CommandTimeoutException is thrown

public string SendCommand(
   string data,
   string[] endTokens,
   int commandTimeout
);

Parameters

data
the data to send
endTokens
the endtoken to match against the response
commandTimeout
the command timeout

Return Value

the response including the matched endtoken

Implements

ISerialIO.SendCommand

See Also

SerialIO Class | Whisperstream.SerialComm.IO Namespace | SerialIO.SendCommand Overload List