Skip to content

Conversation

@fifieldt
Copy link
Member

@fifieldt fifieldt commented Jul 1, 2025

Now we have the ability to detect multiple AirQualitySensors, follow the lead of other sensor types and create supporting methods and objects for using this information.

Continued cherry-picking to get #4601 over the line :)

Co-Authored-By: @Coloradohusky

Copy link
Member Author

@fifieldt fifieldt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This piece of the code was written by Coloradohusky and has been thoroughly tested since Sept 2024. Will merge this quickly to help the hackathon people.

Tested in hardware using a T114 and SCD40.

Now we have the ability to detect multiple AirQualitySensors,
follow the lead of other sensor types and create supporting methods
and objects for using this information.

Continued cherry-picking to get meshtastic#4601 over the line :)

Co-Authored-By: @Coloradohusky
@thebentern thebentern requested a review from Copilot July 1, 2025 11:08
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds detection framework support for multiple AirQuality sensors by introducing new variables and methods to enable sensor detection and mapping.

  • Added global variable and initialization for Air Quality Indicator sensor detection.
  • Implemented a new method firstAQI() in ScanI2C for detecting AQI sensors and integrated its usage in the main setup flow.
  • Extended the sensor-to-sensor map with the SCD4X sensor telemetry type.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/main.h Declares new external variable for AQI sensor detection.
src/main.cpp Initializes and assigns the AQI sensor address and adds sensor mapping.
src/detect/ScanI2C.h Declares new firstAQI() method for AQI sensor detection.
src/detect/ScanI2C.cpp Implements firstAQI() to return the first found AQI sensor.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@fifieldt fifieldt merged commit baf0e9c into meshtastic:master Jul 1, 2025
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants