Skip to content

Commit

Permalink
Changed measurement and update intervalls
Browse files Browse the repository at this point in the history
  • Loading branch information
Achim committed Mar 2, 2024
1 parent 1eb43f6 commit c1228bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions examples/ONE/ONE.ino
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ enum {
#define WIFI_CONNECT_RETRY_MS 10000 /** ms */
#define LED_BAR_COUNT_INIT_VALUE (-1) /** */
#define LED_BAR_ANIMATION_PERIOD 100 /** ms */
#define DISP_UPDATE_INTERVAL 5000 /** ms */
#define SERVER_CONFIG_UPDATE_INTERVAL 30000 /** ms */
#define DISP_UPDATE_INTERVAL 2500 /** ms */
#define SERVER_CONFIG_UPDATE_INTERVAL 15000 /** ms */
#define SERVER_SYNC_INTERVAL 60000 /** ms */
#define MQTT_SYNC_INTERVAL 60000 /** ms */
#define SENSOR_CO2_CALIB_COUNTDOWN_MAX 5 /** sec */
#define SENSOR_TVOC_UPDATE_INTERVAL 1000 /** ms */
#define SENSOR_CO2_UPDATE_INTERVAL 5000 /** ms */
#define SENSOR_CO2_UPDATE_INTERVAL 4000 /** ms */
#define SENSOR_PM_UPDATE_INTERVAL 2000 /** ms */
#define SENSOR_TEMP_HUM_UPDATE_INTERVAL 2000 /** ms */
#define DISPLAY_DELAY_SHOW_CONTENT_MS 2000 /** ms */
Expand Down Expand Up @@ -2239,7 +2239,6 @@ static void sendDataToServer(void) {
* @brief Update temperature and humidity value
*/
static void tempHumUpdate(void) {
Serial.println("Try SHT");
if (ag.sht.measure()) {

temp = ag.sht.getTemperature();
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=AirGradient Air Quality Sensor
version=3.0.5
version=3.0.6
author=AirGradient <support@airgradient.com>
maintainer=AirGradient <support@airgradient.com>
sentence=ESP32-C3 / ESP8266 library for air quality monitor measuring PM, CO2, Temperature, TVOC and Humidity with OLED display.
Expand Down
2 changes: 1 addition & 1 deletion src/AirGradient.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "AirGradient.h"

#define AG_LIB_VER "3.0.5"
#define AG_LIB_VER "3.0.6"

AirGradient::AirGradient(BoardType type)
: pms5003(type), pms5003t_1(type), pms5003t_2(type), s8(type), sgp41(type),
Expand Down

0 comments on commit c1228bb

Please sign in to comment.