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.