LTE IoT 8 Click Example.
Description
Application example shows device capability to connect network and send SMS messages using standard "AT" commands.
The demo application is composed of two sections :
Application Init
Initializes driver and wake-up module and test communication.
Application Task
Application taks is split in few stages:
- LTEIOT8_CONFIGURE_FOR_CONNECTION: Sets configuration to device to be able to connect to newtork.
- LTEIOT8_WAIT_FOR_CONNECTION: Checks device response untill device sends information that it is connected to network.
- LTEIOT8_CHECK_CONNECTION: Checks device connection status parameters.
- LTEIOT8_CONFIGURE_FOR_MESSAGES: Sets configuration to device to send SMS messages.
- LTEIOT8_MESSAGES: Sends message in selected mode (PDU/TXT).
Additional Function
- static void lteiot8_clear_app_buf ( void )
- static err_t lteiot8_process ( void )
- static void lteiot8_error_check( err_t error_flag )
- static void lteiot8_log_app_buf ( void )
- static err_t lteiot8_rsp_check ( void )
- static err_t lteiot8_configure_for_connection( void )
- static err_t lteiot8_check_connection( void )
- static err_t lteiot8_check_connection_parameters( void )
- static err_t lteiot8_configure_for_meesages( void )
- static err_t lteiot8_send_meesage( void )
- Note
- In order for the example to work, user needs to set the phone number to which he wants to send an SMS, and also will need to set an APN and SMSC of entered SIM card. Enter valid data for the following macros: SIM_APN, SIM_SMSC and PHONE_NUMBER_TO_MESSAGE. E.g. SIM_APN "vip.iot" SMSC_ADDRESS_CSCA "\"+381999999\",145" SMSC_ADDRESS_PDU "+381999999\"
PHONE_NUMBER_TO_MESSAGE "+381659999999"
- Author
- Luka Filipovic