NB IoT 5 Click Example.
Description
This example reads and processes data from NB IoT 5 clicks. It configures device for connection to network, and checks if device is connected, and signal quality. After it connects, it sends SMS message to phone number set in application.
The demo application is composed of two sections :
Application Init
Initializes driver and wake-up module, and sets default configuration for connection.
Application Task
Checks if device is connected to network, when device connects to network device is sending SMS message to selected phone number.
Additional Function
- static void nbiot5_clear_app_buf ( void )
- static void nbiot5_error_check( err_t error_flag )
- static void nbiot5_log_app_buf ( void )
- static void nbiot5_check_connection( void )
- static err_t nbiot5_rsp_check ( void )
- static err_t nbiot5_process ( 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 correct sim apn of its SIM card. Enter valid data for the following macros: SIM_APN and PHONE_NUMBER_TO_MESSAGE. E.g. SIM_APN "vip.iot" PHONE_NUMBER_TO_MESSAGE "999999999"
*You need to have USB connected to device in the beggining of
the application for additional power on startup.*
- Author
- Luka Filipovic