Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
lte_control.h File Reference

Control over LTE connectivity in response to events. More...

#include <stdbool.h>
#include <zephyr/net/net_if.h>
#include <infuse/states.h>

Go to the source code of this file.

Functions

void auto_lte_control_init (uint8_t loggers)
 Initialise LTE control policy.
void auto_lte_control_give_up (void)
 If the LTE modem has not yet registered to a network, give up.
void auto_lte_control_retry (void)
 If the LTE modem previously stopped searching for a network to register to, try again.

Detailed Description

Control over LTE connectivity in response to events.

Author
Jordan Yates jorda.nosp@m.n@em.nosp@m.beint.nosp@m..com

SPDX-License-Identifier: FSL-1.1-ALv2

Force disable LTE connectivity when INFUSE_STATE_APPLICATION_ACTIVE is not set. When active, control the LTE state according to auto_lte_control_retry and auto_lte_control_give_up.

Function Documentation

◆ auto_lte_control_give_up()

void auto_lte_control_give_up ( void )

If the LTE modem has not yet registered to a network, give up.

◆ auto_lte_control_init()

void auto_lte_control_init ( uint8_t loggers)

Initialise LTE control policy.

Note
Must be called by application main function to initialise behaviour, once only.
Parameters
loggersTDF loggers to log TDF_LTE_CONTROL events to

◆ auto_lte_control_retry()

void auto_lte_control_retry ( void )

If the LTE modem previously stopped searching for a network to register to, try again.