Sentinel
Loading...
Searching...
No Matches
networkStatusTask.cpp File Reference

Network Status Task Implementation. More...

#include "tasks/networkStatusTask.h"
#include "config.h"
#include "network/network.h"
#include "utils/threadsafe_serial.h"
#include <Arduino.h>

Macros

#define NETWORK_CONNECTED_BIT   BIT0
 Network connected event bit.
 
#define SYSTEM_READY_BIT   BIT1
 System ready event bit.
 

Functions

void networkStatusTask (void *pvParameters)
 Network Status Task function.
 

Variables

EventGroupHandle_t networkEventGroup
 
SemaphoreHandle_t networkEventMutex
 
Network network
 

Detailed Description

Network Status Task Implementation.

This file implements the networkStatusTask function, which is responsible for managing the network connection status. It checks for system readiness, maintains the WiFi and LTE connections, and updates the network event group accordingly.

Function Documentation

◆ networkStatusTask()

void networkStatusTask ( void * pvParameters)

Network Status Task function.

Parameters
pvParameters

This function runs in a FreeRTOS task and manages the network connection status.