Sentinel
Loading...
Searching...
No Matches
gasTask.h File Reference

Gas Task Header File. More...

Go to the source code of this file.

Functions

void gasTask (void *parameter)
 Gas Task function.
 

Detailed Description

Gas Task Header File.

This file contains the declaration of the gasTask function, which is used to handle gas sensor operations in a FreeRTOS task. The task is responsible for reading gas concentration data from the MQ2 sensor and sending it to a queue for processing.

Function Documentation

◆ gasTask()

void gasTask ( void * parameter)

Gas Task function.

Parameters
parameter

This function handles gas sensor operations in a FreeRTOS task. It reads gas concentration data from the MQ2 sensor and sends it to a queue for processing. The task runs in an infinite loop, waiting for data to be available in the queue. When data is received, it is sent to the network for processing. The task uses the MQ2 sensor to measure gas concentration in parts per million (PPM) and sends the data to a queue.

Parameters
parameter