NB IoT 4 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 UART communication modules and additional pins wait for powerup or restarts device. Test communication and read information from device.
Application Task
First it confiures device for connection to network(sets extern sim, selected apn). It waits until device gets information that is connected to home network. Then checks connection parameters. After that it configures device for one type of sending message TEXT or PDU mode. In the end it sends SMS message to selected number.
Additional Function
- static void nbiot4_clear_app_buf ( void )
- static err_t nbiot4_process ( void )
- static void nbiot4_log_app_buf ( void )
- static err_t nbiot4_rsp_check ( void )
- static err_t nbiot4_configure_for_connection( void )
- static err_t nbiot4_check_connection( void )
- static err_t nbiot4_wait_to_connect( void )
- static err_t nbiot4_configure_for_sms( void )
- static err_t nbiot4_send_meesage( void )
- static void nbiot4_restart_device( uint16_t start_timeout )
- 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, SMSC_ADDRESS and PHONE_NUMBER_TO_MESSAGE. E.g. SIM_APN "vip.iot" SMSC_ADDRESS "+381610401" PHONE_NUMBER_TO_MESSAGE "+381659999999"
- Author
- Luka Filipovic