Vodafone K3770/K3772-Z modems driver & networking library
Dependencies: Socket USBHostWANDongle lwip-sys lwip
Dependents: VodafoneUSBModemHTTPClientTest VodafoneUSBModemNTPClientTest VodafoneUSBModemSMSTest VodafoneUSBModemUSSDTest ... more
Fork of VodafoneUSBModem_bleedingedge by
SMSInterface Class Reference
Component to use the Short Messages Service (SMS) More...
#include <SMSInterface.h>
Inherits IATCommandsProcessor, and IATEventsHandler.
Public Member Functions | |
SMSInterface (ATCommandsInterface *pIf) | |
Create SMSInterface instance. | |
int | init () |
Initialize interface Configure SMS commands & register for SMS-related unsolicited result codes. | |
int | send (const char *number, const char *message) |
Send a SM. | |
int | get (char *number, char *message, size_t maxLength) |
Receive a SM. | |
int | getCount (size_t *pCount) |
Get the number of SMs in the incoming box. | |
Friends | |
class | ATCommandsInterface |
class | ATCommandsInterface |
Detailed Description
Component to use the Short Messages Service (SMS)
Definition at line 34 of file SMSInterface.h.
Constructor & Destructor Documentation
SMSInterface | ( | ATCommandsInterface * | pIf ) |
Create SMSInterface instance.
- Parameters:
-
pIf Pointer to the ATCommandsInterface instance to use
Definition at line 34 of file SMSInterface.cpp.
Member Function Documentation
int get | ( | char * | number, |
char * | message, | ||
size_t | maxLength | ||
) |
Receive a SM.
- Parameters:
-
number Pointer to a buffer to store the sender's phone number (must be at least 17 characters-long, including the space for the null-terminating char) message Pointer to a buffer to store the the incoming message maxLength Maximum message length that can be stored in buffer (including null-terminating character)
- Returns:
- 0 on success, error code on failure
Definition at line 113 of file SMSInterface.cpp.
int getCount | ( | size_t * | pCount ) |
Get the number of SMs in the incoming box.
- Parameters:
-
pCount pointer to store the number of unprocessed SMs on
- Returns:
- 0 on success, error code on failure
Definition at line 204 of file SMSInterface.cpp.
int init | ( | ) |
Initialize interface Configure SMS commands & register for SMS-related unsolicited result codes.
Definition at line 40 of file SMSInterface.cpp.
int send | ( | const char * | number, |
const char * | message | ||
) |
Send a SM.
- Parameters:
-
number The receiver's phone number message The message to send
- Returns:
- 0 on success, error code on failure
Definition at line 79 of file SMSInterface.cpp.
Generated on Tue Jul 12 2022 12:11:28 by 1.7.2