@@ -30,43 +30,90 @@ class NiclaSenseEnvSerial {
3030 bool update ();
3131
3232 // TemperatureHumiditySensor compatible API
33- /* * @brief Get the temperature value from the sensor in degrees Celsius. */
33+ /* *
34+ * @brief Get the temperature value from the sensor in degrees Celsius.
35+ * @return Temperature in degrees Celsius, or NAN when unavailable.
36+ */
3437 float temperature () const ;
35- /* * @brief Get the relative humidity value (Range 0-100%). */
38+ /* *
39+ * @brief Get the relative humidity value.
40+ * @return Relative humidity percentage in the range 0-100, or NAN when unavailable.
41+ */
3642 float humidity () const ;
3743
3844 // OutdoorAirQualitySensor compatible API
39- /* * @brief Retrieves the EPA air quality index. Range is 0 to 500. */
40- int airQualityIndex () const ;
41- /* * @brief Get the fast air quality index (1-minute averaging). */
42- int fastAirQualityIndex () const ;
43- /* * @brief Get the NO2 value from the outdoor air quality sensor (ppb). */
45+ /* *
46+ * @brief Retrieves the outdoor EPA air quality index.
47+ * @return AQI value in the range 0-500, or -1 when unavailable.
48+ */
49+ int outdoorAirQualityIndex () const ;
50+ /* *
51+ * @brief Get the outdoor fast air quality index (1-minute averaging).
52+ * @return Fast AQI value in the range 0-500, or -1 when unavailable.
53+ */
54+ int outdoorFastAirQualityIndex () const ;
55+ /* *
56+ * @brief Get the NO2 value from the outdoor air quality sensor.
57+ * @return Nitrogen dioxide concentration in ppb, or NAN when unavailable.
58+ */
4459 float NO2 () const ;
45- /* * @brief Get the O3 value from the outdoor air quality sensor (ppb). */
60+ /* *
61+ * @brief Get the O3 value from the outdoor air quality sensor.
62+ * @return Ozone concentration in ppb, or NAN when unavailable.
63+ */
4664 float O3 () const ;
47- /* * @brief Interprets the EPA AQI into a textual description. */
48- String airQualityIndexInterpreted () const ;
65+ /* *
66+ * @brief Interprets the outdoor EPA AQI into a textual description.
67+ * @return Human-readable AQI category (e.g., Good, Moderate) or "unknown" when unavailable.
68+ */
69+ String outdoorAirQualityIndexInterpreted () const ;
4970
5071 // IndoorAirQualitySensor compatible API
51- /* * @brief Get the air quality value. Common range 0 to ~5. */
52- float airQuality () const ;
53- /* * @brief Get the interpreted air quality value (Very Good, Good, Medium, Poor, Bad). */
54- String airQualityInterpreted () const ;
55- /* * @brief Get the relative air quality value in percent (0 - 100%). */
56- float relativeAirQuality () const ;
57- /* * @brief Get the CO2 value in ppm. */
72+ /* *
73+ * @brief Get the indoor air quality value.
74+ * @return IAQ value (common range 0 to ~5), or NAN when unavailable.
75+ */
76+ float indoorAirQuality () const ;
77+ /* *
78+ * @brief Get the interpreted indoor air quality value.
79+ * @return Human-readable IAQ category (Very Good, Good, Medium, Poor, Bad) or "unknown" when unavailable.
80+ */
81+ String indoorAirQualityInterpreted () const ;
82+ /* *
83+ * @brief Get the indoor relative air quality value.
84+ * @return Relative IAQ percentage in the range 0-100, or NAN when unavailable.
85+ */
86+ float indoorRelativeAirQuality () const ;
87+
88+ /* *
89+ * @brief Get the CO2 value.
90+ * @return Estimated CO2 concentration in ppm, or NAN when unavailable.
91+ */
5892 float CO2 () const ;
59- /* * @brief Get the TVOC value in mg/m^3. */
93+ /* *
94+ * @brief Get the TVOC value.
95+ * @return Total volatile organic compounds concentration in mg/m^3, or NAN when unavailable.
96+ */
6097 float TVOC () const ;
61- /* * @brief Get the ethanol value in ppm. */
98+ /* *
99+ * @brief Get the ethanol value.
100+ * @return Ethanol concentration in ppm, or NAN when unavailable.
101+ */
62102 float ethanol () const ;
63- /* * @brief Get the odor intensity value. */
103+ /* *
104+ * @brief Get the odor intensity value.
105+ * @return Odor intensity (sensor-specific scale), or NAN when unavailable.
106+ */
64107 float odorIntensity () const ;
65- /* * @brief Get the sulfur odor-detected value (true or false). */
108+ /* *
109+ * @brief Get the sulfur odor-detected flag.
110+ * @return true when sulfur odor is detected, false otherwise.
111+ */
66112 bool sulfurOdor () const ;
67113
68114 /* *
69115 * @brief Returns the last error message received over UART, empty when none.
116+ * @return Error string from the device, or an empty String when no error is present.
70117 */
71118 String lastErrorMessage () const ;
72119
0 commit comments