Baby Monitoring System
Loading...
Searching...
No Matches
SensorInfo Struct Reference

Stores information associated with a sensor. More...

Data Fields

sensorIDs id
 
char name [13]
 Name of the sensor to display (maximum length 15 characters).
 
float value
 Current value of the sensor, updated when a new value is received.
 
int idNum
 ID number of the sensor.
 
bool(* triggerAlarm )(float)
 Function pointer to a function that checks if the sensor value should trigger an alarm.
 
bool alarm
 Indicates whether the alarm was triggered by this sensor.
 

Detailed Description

Stores information associated with a sensor.

Field Documentation

◆ alarm

bool alarm

Indicates whether the alarm was triggered by this sensor.

◆ id

Sensor ID.

◆ idNum

int idNum

ID number of the sensor.

◆ name

char name

Name of the sensor to display (maximum length 15 characters).

Name to display for the sensor.

◆ triggerAlarm

bool(* triggerAlarm) (float)

Function pointer to a function that checks if the sensor value should trigger an alarm.

◆ value

float value

Current value of the sensor, updated when a new value is received.

Value of the sensor, updated as values are read.


The documentation for this struct was generated from the following files: