Whisperstream Research Group - SerialComm GSM SDK Documentation

ISerialIO.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

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

See Also

ISerialIO Interface | Whisperstream.SerialComm.Framework.Interfaces Namespace | ISerialIO.SendCommand Overload List