Nicholas Herriot / VodafoneK3770Lib
Embed: (wiki syntax)

« Back to documentation index

VodafoneK3770 Class Reference

VodafoneK3770 Class Reference

Vodafone K3770 dongle. More...

#include <VodafoneK3770.h>

Public Member Functions

 VodafoneK3770 ()
 Create Vodafone K3770 dongle API instance.
int connect (const char *apn=NULL, const char *user=NULL, const char *password=NULL)
 Open a 3G internet connection.
int disconnect ()
 Close the internet connection.
int sendSM (const char *number, const char *message)
 Send a SM.
int getSM (char *number, char *message, size_t maxLength)
 Receive a SM.
int getSMCount (size_t *pCount)
 Get the number of SMs in the incoming box.

Detailed Description

Vodafone K3770 dongle.

Definition at line 37 of file VodafoneK3770.h.


Constructor & Destructor Documentation

Create Vodafone K3770 dongle API instance.

Definition at line 33 of file VodafoneK3770.cpp.


Member Function Documentation

int connect ( const char *  apn = NULL,
const char *  user = NULL,
const char *  password = NULL 
)

Open a 3G internet connection.

Returns:
0 on success, error code on failure

Definition at line 164 of file VodafoneK3770.cpp.

int disconnect (  )

Close the internet connection.

Returns:
0 on success, error code on failure

Definition at line 241 of file VodafoneK3770.cpp.

int getSM ( char *  number,
char *  message,
size_t  maxLength 
)

Receive a SM.

Parameters:
numberPointer to a buffer to store the sender's phone number (must be at least 17 characters-long, including the sapce for the null-terminating char)
messagePointer to a buffer to store the the incoming message
maxLengthMaximum message length that can be stored in buffer (including null-terminating character)
Returns:
0 on success, error code on failure

Definition at line 321 of file VodafoneK3770.cpp.

int getSMCount ( size_t *  pCount )

Get the number of SMs in the incoming box.

Parameters:
pCountpointer to store the number of unprocessed SMs on
Returns:
0 on success, error code on failure

Definition at line 348 of file VodafoneK3770.cpp.

int sendSM ( const char *  number,
const char *  message 
)

Send a SM.

Parameters:
numberThe receiver's phone number
messageThe message to send
Returns:
0 on success, error code on failure

Definition at line 294 of file VodafoneK3770.cpp.