|
#include <omSmsManager.h>
Public Member Functions | |
| omSmsManager () | |
| virtual | ~omSmsManager () |
| int | InitDevice (wxString port, int bouds=B19200) |
| wxString | GetDevice () |
| void | Reset () |
| int | SendSMS (wxString phone_number, wxString message) |
| int | ReceiveMessages (omSmsArray *messages) |
Private Member Functions | |
| int | WriteString (char *s, int how) |
| int | WriteChar (char c, char *answ, int lansw) |
| int | SendString (char *dom, char *ris, int tmout) |
| int | QueryPhone (char *qy, char *stop, char *answ, int tmout) |
| omSms * | GetSmsHeader (wxString buf) |
Private Attributes | |
| wxString | port |
| Port to connect the device. | |
| int | device_init |
| Flag for device initialization. | |
| int | device |
| Device handler. | |
|
|
Constructor |
|
|
Destructor. Close the device. |
|
|
Get the port value
|
|
|
|
|
||||||||||||
|
Initialize the device Opens serial connection on cellular phone return TRUE if open OK FALSE if error
|
|
||||||||||||||||||||
|
|
|
|
Receive an SMS from the phone
|
|
|
Reset the connection |
|
||||||||||||
|
Send an SMS to the phone
|
|
||||||||||||||||
|
Send a string to phone tmout - timeout in milliseconds return TRUE if the modem respons correctly FALSE elsewhere |
|
||||||||||||||||
|
Write a char to the modem. |
|
||||||||||||
|
Write a string to the modem. If how == 0, '~' sleeps 1 second. If how == 1, "^~" sleeps 1 second. |
|
|
Device handler.
|
|
|
Flag for device initialization.
|
|
|
Port to connect the device.
|
|
Copyright © by Luca Clivio |