Logo Search packages:      
Sourcecode: pwlib version File versions

BOOL PModem::Initialise (  ) 

Send the initialisation meta-command string to the modem. The return value indicates that the conditions for the operation to start were met, ie the serial port was open etc and the command was successfully sent with all replies met.

TRUE if command string sent successfully and the objects state has changed.

Definition at line 245 of file modem.cxx.

References CanInitialise(), Initialised, InitialiseFailed, Initialising, and PChannel::SendCommandString().

  if (CanInitialise()) {
    status = Initialising;
    if (SendCommandString(initCmd)) {
      status = Initialised;
      return TRUE;
    status = InitialiseFailed;
  return FALSE;

Generated by  Doxygen 1.6.0   Back to index