lteiot12 2.1.0.0
|
LTE IoT 12 Click Example. More...
Enumerations | |
enum | ltelte12_example_state_t { LTEIOT12_CONFIGURE_FOR_EXAMPLE = 1 , LTEIOT12_EXAMPLE } |
Example states. More... | |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
LTE IoT 12 Click Example.
Application example shows device capability of connecting to the network and sending SMS, TCP/UDP messages or getting GNSS data using standard "AT" commands.
The demo application is composed of two sections :
Sets the device configuration for sending SMS, TCP/UDP messages or getting GNSS data.
Depending on the selected demo example, it sends an SMS message (in PDU or TXT mode) or a TCP/UDP message or getting GNSS data ( position and altitude ).
#define CONNECTED "+CGATT: 1" |
#define CONTEXTID "1" |
#define DEMO_EXAMPLE SMS_EXAMPLE |
#define GNSS_EXAMPLE 2 |
#define LTEIOT12_CHAR_SET_GMS "\"GSM\"" |
#define LTEIOT12_CONFIG_GNSS "\"nmeasrc\",1" |
#define LTEIOT12_DISABLE_PSM "1" |
#define LTEIOT12_DISABLE_SLEEP "0" |
#define LTEIOT12_EN_LOCATION_AND_NETWORK "2" |
#define LTEIOT12_EN_LOCATION_AND_NETWORK "2" |
#define LTEIOT12_FULL_FUN "1" |
#define LTEIOT12_MIN_FUN "0" |
#define LTEIOT12_PS_ATTACHED "1" |
#define LTEIOT12_TCP_SOCKET_OPEN "QIOPEN: 0,0" |
#define LTEIOT12_TEXT_MODE "1" |
#define LTEIOT12_TURN_ON_GNSS "1" |
#define LTEIOT12_UDP_SOCKET_OPEN "QIOPEN: 1,0" |
#define LTEIOT12_URC_ENABLE "1" |
#define MESSAGE_CONTENT "LTE IoT 12 Click Example" |
#define PHONE_NUMBER_TO_MESSAGE "+381621702719" |
#define PROCESS_BUFFER_SIZE 300 |
#define REMOTE_IP "77.46.162.162" |
#define REMOTE_PORT "51111" |
#define SIM_APN "vipmobile" |
#define SIM_SMSC "+381610401" |
#define SMS_DEMO_EXAMPLE SMS_TEXT_MODE |
#define SMS_EXAMPLE 1 |
#define SMS_PDU_MODE 0 |
#define SMS_TEXT_MODE 1 |
#define TCP "TCP" |
#define TCP_PROTOCOL "0" |
#define TCP_UDP_EXAMPLE 0 |
#define UDP "UDP" |
#define UDP_PROTOCOL "1" |
#define URC_READ_SOCKET_DATA "+QIURC: \"recv\"" |
void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |