|
ltecat13ex 2.2.0
|
LTE Cat.1 3 EX Click Example. More...
#include "board.h"#include "log.h"#include "ltecat13ex.h"#include "generic_pointer.h"#include "conversions.h"Macros | |
| #define | EXAMPLE_TCP_UDP 0 |
| #define | EXAMPLE_SMS 1 |
| #define | EXAMPLE_CALL 2 |
| #define | EXAMPLE_GNSS 3 |
| #define | DEMO_EXAMPLE EXAMPLE_TCP_UDP |
| #define | SIM_APN "internet" |
| #define | SIM_SMSC "" |
| #define | PHONE_NUMBER "" |
| #define | SMS_MODE "0" |
| #define | REMOTE_IP "77.46.162.162" |
| #define | REMOTE_PORT "51111" |
| #define | MESSAGE_CONTENT "LTE Cat.1 3 EX Click board - demo example." |
| #define | APP_BUFFER_SIZE 500 |
| #define | PROCESS_BUFFER_SIZE 200 |
| #define | MIN_FUN_DEVICE "0" |
| #define | FULL_FUN_DEVICE "1" |
| #define | DEREGISTER_FROM_NETWORK "2" |
| #define | FULL_FUNCTIONALITY "1" |
| #define | ENABLE_REG "2" |
| #define | AUTOMATIC_REGISTRATION "0" |
| #define | CONNECTED_HOME "+CREG: 2,1" |
| #define | CONNECTED_ROAMING "+CREG: 2,5" |
| #define | ACTIVATE_CONTEXT "1" |
| #define | CONTEXT_ID "1" |
| #define | CONNECT_ID_TCP "1" |
| #define | SEVICE_TYPE_TCP "\"TCP\"" |
| #define | LOCAL_PORT "0" |
| #define | ACCESS_MODE "0" |
| #define | MAX_READ_SIZE "1500" |
| #define | CONNECT_ID_UDP "2" |
| #define | SEVICE_TYPE_UDP "\"UDP\"" |
Enumerations | |
| enum | ltecat13ex_example_state_t { LTECAT13EX_CONFIGURE_FOR_NETWORK = 1 , LTECAT13EX_WAIT_FOR_CONNECTION , LTECAT13EX_CONFIGURE_FOR_EXAMPLE , LTECAT13EX_EXAMPLE } |
| Example states. More... | |
Functions | |
| void | application_init (void) |
| void | application_task (void) |
| int | main (void) |
LTE Cat.1 3 EX Click Example.
Application example shows device capability of connecting to the network and sending SMS, TCP/UDP messages, calling the selected number, or getting GNSS location using standard "AT" commands.
The demo application is composed of two sections :
Sets the device configuration for sending SMS, TCP/UDP messages, calling the selected number or GNSS location.
Depending on the selected demo example, it sends an SMS message (in PDU or TXT mode) or a TCP/UDP message, calls the selected number or gets GNSS location.
| #define ACCESS_MODE "0" |
| #define ACTIVATE_CONTEXT "1" |
| #define APP_BUFFER_SIZE 500 |
| #define AUTOMATIC_REGISTRATION "0" |
| #define CONNECT_ID_TCP "1" |
| #define CONNECT_ID_UDP "2" |
| #define CONNECTED_HOME "+CREG: 2,1" |
| #define CONNECTED_ROAMING "+CREG: 2,5" |
| #define CONTEXT_ID "1" |
| #define DEMO_EXAMPLE EXAMPLE_TCP_UDP |
| #define DEREGISTER_FROM_NETWORK "2" |
| #define ENABLE_REG "2" |
| #define EXAMPLE_CALL 2 |
| #define EXAMPLE_GNSS 3 |
| #define EXAMPLE_SMS 1 |
| #define EXAMPLE_TCP_UDP 0 |
| #define FULL_FUN_DEVICE "1" |
| #define FULL_FUNCTIONALITY "1" |
| #define LOCAL_PORT "0" |
| #define MAX_READ_SIZE "1500" |
| #define MESSAGE_CONTENT "LTE Cat.1 3 EX Click board - demo example." |
| #define MIN_FUN_DEVICE "0" |
| #define PHONE_NUMBER "" |
| #define PROCESS_BUFFER_SIZE 200 |
| #define REMOTE_IP "77.46.162.162" |
| #define REMOTE_PORT "51111" |
| #define SEVICE_TYPE_TCP "\"TCP\"" |
| #define SEVICE_TYPE_UDP "\"UDP\"" |
| #define SIM_APN "internet" |
| #define SIM_SMSC "" |
| #define SMS_MODE "0" |
| 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 | ) |