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

Main File. More...

#include "SensorData.h"
#include "config.h"
#include "network/bluetooth.h"
#include "tasks/accelerometerTask.h"
#include "tasks/batteryTask.h"
#include "tasks/bluetoothTask.h"
#include "tasks/communicationTask.h"
#include "tasks/dhtTask.h"
#include "tasks/gasTask.h"
#include "tasks/networkStatusTask.h"
#include "tasks/processingTask.h"
#include "utilities.h"
#include <TinyGsmClient.h>
#include <WiFi.h>
#include <Arduino.h>
#include <Wire.h>

Macros

#define SYSTEM_READY_BIT   BIT1
 

Functions

TinyGsm modem (SerialAT)
 
void setup ()
 
void loop ()
 Main loop.
 

Variables

QueueHandle_t dataQueue
 
QueueHandle_t httpQueue
 
EventGroupHandle_t networkEventGroup
 
SemaphoreHandle_t serialMutex
 Serial mutex for thread-safe printing.
 
SemaphoreHandle_t modemMutex
 Modem mutex for thread-safe modem operations.
 
SemaphoreHandle_t networkEventMutex
 Mutex for network event handling.
 

Detailed Description

Main File.

This file contains the main function and setup function for the ESP32 project. It initializes the necessary components, creates FreeRTOS tasks, and sets up the event group for network communication.

Function Documentation

◆ loop()

void loop ( )

Main loop.

The main loop is empty as all tasks are handled in FreeRTOS tasks. The loop function is required by the Arduino framework, but it does not perform any operations.