#include <inttypes.h>

Go to the source code of this file.
Data Structures | |
| class | WaspGPRS |
| WaspGPRS Class. More... | |
Defines | |
| #define | GPRS_ON 0 |
| Working mode. ON in this case. | |
| #define | GPRS_SLEEP 1 |
| Working mode. SLEEP in this case. | |
| #define | GPRS_HIBERNATE 2 |
| Working mode. HIBERNATE in this case. | |
| #define | GPRS_ERROR_POWER 1 |
| Flag Value. Error while powering in this case. | |
| #define | GPRS_ERROR_CALL 2 |
| Flag Value. Error while calling in this case. | |
| #define | GPRS_ERROR_HANG 4 |
| Flag Value. Error while hanging up in this case. | |
| #define | GPRS_ERROR_SMS 8 |
| Flag Value. Error while sending a SMS in this case. | |
| #define | GPRS_ERROR_PIN 16 |
| Flag Value. Error while setting PIN in this case. | |
| #define | GPRS_ERROR_CALLINFO 32 |
| Flag Value. Error while setting call info in this case. | |
| #define | GPRS_ERROR_SMSINFO 64 |
| Flag Value. Error while setting SMS info in this case. | |
| #define | GPRS_ERROR_CONF 128 |
| Flag Value. Error while configuring GPRS connection in this case. | |
| #define | GPRS_ERROR_PATTERN 256 |
| Flag Value. Error while setting pattern in this case. | |
| #define | GPRS_ERROR_TIMER 512 |
| Flag Value. Error while setting timer in this case. | |
| #define | GPRS_ERROR_PROFILE 1024 |
| Flag Value. Error while setting profile in this case. | |
| #define | GPRS_ERROR_SOCKET 2048 |
| Flag Value. Error while opening a socket in this case. | |
| #define | GPRS_ERROR_CHECK 4096 |
| Flag Value. Error while checking connection in this case. | |
| #define | GPRS_ERROR_CLOSE 8192 |
| Flag Value. Error while closing a socket in this case. | |
| #define | GPRS_ERROR_SMTP 16384 |
| Flag Value. Error while using SMTP. | |
| #define | GPRS_RATE 38400 |
| GPRS Baud Rate. | |
| #define | DELAY_ON_SEND 1500 |
| Constants for AT commands. Delay after every sending attempt in this case. | |
| #define | DEFAULT_TIMEOUT 10 |
| Constants for AT commands. Default attempts to try in this case. | |
| #define | SEND_ONCE 1 |
| Constants for AT commands. Sending only once in this case. | |
| #define | PORT_USED 1 |
| Constants for AT commands. Port used in AT commands functions in this case. | |
| #define | GPRS_CLIENT 0 |
| When opening a socket, it can be opened as client or server. Client in this case. | |
| #define | GPRS_SERVER 1 |
| When opening a socket, it can be opened as client or server. Server in this case. | |
| #define | GPRS_DATA_LENGTH "100" |
| Maximum data length expressed as a string. | |
| #define | GPRS_DATA_LENGTH_U 100 |
| Maximum data length expressed as an integer. | |
| #define | GPRS_MAX_DATA 100 |
| Maximum data length. | |
Variables | |
| WaspGPRS | GPRS |
Copyright (C) 2009 Libelium Comunicaciones Distribuidas S.L. http://www.libelium.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2.1 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Version: 0.6
Design: David Gascón
Implementation: Alberto Bielsa, David Cuartielles
Definition in file WaspGPRS.h.
| #define DEFAULT_TIMEOUT 10 |
Constants for AT commands. Default attempts to try in this case.
Definition at line 148 of file WaspGPRS.h.
Referenced by WaspGPRS::check(), and WaspGPRS::sendCommand().
| #define DELAY_ON_SEND 1500 |
Constants for AT commands. Delay after every sending attempt in this case.
Definition at line 143 of file WaspGPRS.h.
Referenced by WaspGPRS::sendCommand().
| #define GPRS_CLIENT 0 |
When opening a socket, it can be opened as client or server. Client in this case.
Definition at line 163 of file WaspGPRS.h.
Referenced by WaspGPRS::createSocket(), and WaspGPRS::readURL().
| #define GPRS_DATA_LENGTH "100" |
Maximum data length expressed as a string.
Definition at line 173 of file WaspGPRS.h.
Referenced by WaspGPRS::readURL().
| #define GPRS_DATA_LENGTH_U 100 |
Maximum data length expressed as an integer.
Definition at line 178 of file WaspGPRS.h.
Referenced by WaspGPRS::readData().
| #define GPRS_ERROR_CALL 2 |
Flag Value. Error while calling in this case.
Definition at line 68 of file WaspGPRS.h.
Referenced by WaspGPRS::makeCall(), and WaspGPRS::makeLostCall().
| #define GPRS_ERROR_CALLINFO 32 |
Flag Value. Error while setting call info in this case.
Definition at line 88 of file WaspGPRS.h.
Referenced by WaspGPRS::setInfoIncomingCall(), and WaspGPRS::setInfoIncomingSMS().
| #define GPRS_ERROR_CHECK 4096 |
Flag Value. Error while checking connection in this case.
Definition at line 123 of file WaspGPRS.h.
Referenced by WaspGPRS::checkGPRS().
| #define GPRS_ERROR_CLOSE 8192 |
Flag Value. Error while closing a socket in this case.
Definition at line 128 of file WaspGPRS.h.
Referenced by WaspGPRS::closeSocket().
| #define GPRS_ERROR_CONF 128 |
Flag Value. Error while configuring GPRS connection in this case.
Definition at line 98 of file WaspGPRS.h.
Referenced by WaspGPRS::configureGPRS().
| #define GPRS_ERROR_HANG 4 |
Flag Value. Error while hanging up in this case.
Definition at line 73 of file WaspGPRS.h.
Referenced by WaspGPRS::hangUp().
| #define GPRS_ERROR_PATTERN 256 |
Flag Value. Error while setting pattern in this case.
Definition at line 103 of file WaspGPRS.h.
Referenced by WaspGPRS::setPattern().
| #define GPRS_ERROR_PIN 16 |
Flag Value. Error while setting PIN in this case.
Definition at line 83 of file WaspGPRS.h.
Referenced by WaspGPRS::setPIN().
| #define GPRS_ERROR_POWER 1 |
Flag Value. Error while powering in this case.
Definition at line 63 of file WaspGPRS.h.
Referenced by WaspGPRS::setMode().
| #define GPRS_ERROR_PROFILE 1024 |
Flag Value. Error while setting profile in this case.
Definition at line 113 of file WaspGPRS.h.
Referenced by WaspGPRS::setConnectionProfile(), and WaspGPRS::setFlowControl().
| #define GPRS_ERROR_SMS 8 |
Flag Value. Error while sending a SMS in this case.
Definition at line 78 of file WaspGPRS.h.
Referenced by WaspGPRS::sendSMS(), and WaspGPRS::setTextModeSMS().
| #define GPRS_ERROR_SMSINFO 64 |
Flag Value. Error while setting SMS info in this case.
Definition at line 93 of file WaspGPRS.h.
Referenced by WaspGPRS::setInfoIncomingSMS().
| #define GPRS_ERROR_SMTP 16384 |
Flag Value. Error while using SMTP.
Definition at line 133 of file WaspGPRS.h.
Referenced by WaspGPRS::setEmailDestination(), WaspGPRS::setEmailParams(), WaspGPRS::setEmailPwd(), WaspGPRS::setEmailSubject(), and WaspGPRS::setFlowControl().
| #define GPRS_ERROR_SOCKET 2048 |
Flag Value. Error while opening a socket in this case.
Definition at line 118 of file WaspGPRS.h.
Referenced by WaspGPRS::createSocket().
| #define GPRS_ERROR_TIMER 512 |
Flag Value. Error while setting timer in this case.
Definition at line 108 of file WaspGPRS.h.
Referenced by WaspGPRS::setConnectionTimer().
| #define GPRS_HIBERNATE 2 |
Working mode. HIBERNATE in this case.
Definition at line 58 of file WaspGPRS.h.
Referenced by WaspGPRS::OFF(), and WaspGPRS::setMode().
| #define GPRS_MAX_DATA 100 |
Maximum data length.
Definition at line 183 of file WaspGPRS.h.
Referenced by WaspGPRS::readMail(), and WaspGPRS::writeData().
| #define GPRS_ON 0 |
Working mode. ON in this case.
Definition at line 48 of file WaspGPRS.h.
Referenced by WaspGPRS::ON(), WaspGPRS::setMode(), and WaspGPRS::WaspGPRS().
| #define GPRS_RATE 38400 |
| #define GPRS_SERVER 1 |
When opening a socket, it can be opened as client or server. Server in this case.
Definition at line 168 of file WaspGPRS.h.
Referenced by WaspGPRS::createSocket().
| #define GPRS_SLEEP 1 |
Working mode. SLEEP in this case.
Definition at line 53 of file WaspGPRS.h.
Referenced by WaspGPRS::setMode().
| #define PORT_USED 1 |
Constants for AT commands. Port used in AT commands functions in this case.
Definition at line 158 of file WaspGPRS.h.
Referenced by WaspGPRS::check(), WaspGPRS::createSocket(), WaspGPRS::downloadFile(), WaspGPRS::getCellInfo(), WaspGPRS::getIfReady(), WaspGPRS::manageIncomingGSMData(), WaspGPRS::readData(), WaspGPRS::readDataFTP(), WaspGPRS::readMail(), WaspGPRS::readSMS(), WaspGPRS::readURL(), WaspGPRS::sendCommand(), WaspGPRS::sendData(), WaspGPRS::sendDataFTP(), WaspGPRS::sendMail(), WaspGPRS::uploadFile(), WaspGPRS::waitForData(), and WaspGPRS::writeData().
| #define SEND_ONCE 1 |
Constants for AT commands. Sending only once in this case.
Definition at line 153 of file WaspGPRS.h.
Referenced by WaspGPRS::hangUp(), WaspGPRS::makeCall(), WaspGPRS::makeLostCall(), WaspGPRS::sendSMS(), WaspGPRS::setInfoIncomingCall(), WaspGPRS::setInfoIncomingSMS(), and WaspGPRS::setPIN().
Definition at line 2009 of file WaspGPRS.cpp.
1.5.6