ComHayesCommand
This function issues a complete command sequence to the modem connected to the specified port. ComHayesCommand will terminate the caller's command with a <CR>, so the caller's function should not have a final <CR>.
After issuing the command, this function waits until all of the characters in the command are sent, or 2 seconds elapse, whichever comes first. It does not await a reply from the modem, though the receive interrupt routine would buffer it and any command echo.
- Syntax: err_t far ComHayesCommand(handle_t Handle, char *Commandp,
int CommandLen);
- Parameters: handle_t Handle - The handle returned via a successful ComOpen.
char *Commandp - Pointer to the command string to send. String does
not have to be null terminated.
int CommandLen - Length of the command to send.
- Returns: 0 - if successful
Any other value indicates an error condition.
ENOTYOURS - The specified port has not been acquired by the calling
application.