-11-
v7.3
Software
4. Software
4.1. Waspmote library
4.1.1. Waspmote 4G library
The files related to the 4G module library are:
/Wasp4G/Wasp4G.h
/Wasp4G/Wasp4G.cpp
/Wasp4G/utility/Wasp4G_constants.h
/Wasp4G/utility/Wasp4G_error_codes.h
It is mandatory to include the 4G library when using this module. So the following line must be added at the
beginning of the code:
#include <Wasp4G.h>
4.1.2. Class constructor
To start using the Waspmote 4G library, an object from the
Wasp4G
class must be created. This object, called
_4G
, is
already created by default inside the Waspmote 4G library. It will be used along this guide to show how Waspmote
works.
When using the class constructor, all variables are initialized to their default values.
4.1.3. API constants
The API constants used in functions are:
Constant
Description
DEBUG_WASP4G
This definition enables/disables the debug mode via USB
port:
0: No debug mode enabled
1: Debug mode enabled for error output messages
2: Debug mode enabled for both error and OK messages
LE910_RATE
Module's communication baud rate
LE910_INCOMING_SMS
Constant to set incoming data type when SMS received
LE910_INCOMING_IP
Constant to set incoming data type when IP received
LE910_MAX_DL_PAYLOAD
Maximum data payload size to be stored in the data
buffer
The are several enumeration definitions for the function inputs. Please refer to the corresponding section in order
to know more about the functions input parameters.
Содержание LE910
Страница 1: ...Waspmote 4G Networking Guide ...