NB IoT 2 Click Example.
Description
This example reads and processes data from NB IoT 2 clicks.
The demo application is composed of two sections :
Application Init
Initializes driver, wake-up module and sets default configuration for connecting device to network.
Application Task
This application is split into two examples:
- TCP/UDP example - connecting to echo server and writing and reading data.
- SMS example - Sending SMS message to desired number using TEXT or PDU mode.
Additional Function
- static void nbiot2_clear_app_buf ( void )
- static err_t nbiot2_process ( void )
- static void nbiot2_config_device_for_example ( void )
- static void nbiot2_check_connection ( void )
- static void nbiot2_log_response ( void )
- static void nbiot2_error_check( err_t error_flag );
- static err_t nbiot2_check_response ( void )
- static void nbiot2_config_device_for_network ( void )
- static void nbiot2_send_sms ( void )
- static void nbiot2_config_device_for_tcp_udp ( void )
- static void nbiot2_tcp_udp_example ( void )
- Note
- In order for the examples to work, user needs to set the APN and SMSC (SMS PDU mode only) of entered SIM card as well as the phone number to which he wants to send an SMS. Enter valid values for the following macros: SIM_APN, SIM_SMSC and PHONE_NUMBER_TO_MESSAGE. Example: SIM_APN "internet" SIM_SMSC "+381610401" PHONE_NUMBER_TO_MESSAGE "+381659999999"
- Author
- Stefan Ilic