Base library for cellular modem implementations

Dependencies:   Socket lwip-sys lwip

Dependents:   CellularUSBModem CellularUSBModem

Embed: (wiki syntax)

« Back to documentation index

USSDInterface Class Reference

USSDInterface Class Reference

Component to send/receive Unstructured Supplementary Service Data (USSD) More...

#include <USSDInterface.h>

Inherits IATCommandsProcessor, and IATEventsHandler.

Public Member Functions

 USSDInterface (ATCommandsInterface *pIf)
 Create USSDInterface instance.
int init ()
 Initialize interface Configure USSD commands & register for USSD-related unsolicited result codes.
int send (const char *command, char *result, size_t maxLength)
 Send a USSD command & wait for its result.

Friends

class ATCommandsInterface
class ATCommandsInterface

Detailed Description

Component to send/receive Unstructured Supplementary Service Data (USSD)

Definition at line 32 of file USSDInterface.h.


Constructor & Destructor Documentation

Create USSDInterface instance.

Parameters:
pIfPointer to the ATCommandsInterface instance to use

Definition at line 34 of file USSDInterface.cpp.


Member Function Documentation

int init (  )

Initialize interface Configure USSD commands & register for USSD-related unsolicited result codes.

Definition at line 40 of file USSDInterface.cpp.

int send ( const char *  command,
char *  result,
size_t  maxLength 
)

Send a USSD command & wait for its result.

Parameters:
commandThe command to send
resultBuffer in which to store the result
maxLengthMaximum result length that can be stored in buffer (including null-terminating character)
Returns:
0 on success, error code on failure

Definition at line 46 of file USSDInterface.cpp.