1
0

Refactor GPS and MQ7 sensor implementations: update function signatures, improve initialization, and streamline data reading logic

This commit is contained in:
Jose
2025-05-07 04:14:39 +02:00
parent b2c7b7677b
commit 383202709e
7 changed files with 54 additions and 110 deletions

View File

@@ -4,6 +4,11 @@
#define REST_PORT 443
#define MQTT_PORT 1883
#define MQ7_ID 1
#define BME280_ID 2
#define GPS_ID 3
#define MAX7219_ID 1
#include "JsonTools.hpp"
#include "RestClient.hpp"
#include "WifiConnection.hpp"
@@ -28,7 +33,7 @@ enum AirQualityStatus {
BAD
};
void processMQ7();
void readMQ7();
void readBME280();
void readGPS();
void writeMatrix(const char* message);