mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
..
This commit is contained in:
@@ -8,6 +8,5 @@ extern void AHTX0_init();
|
||||
extern void LCD_init();
|
||||
extern void BH1750_init();
|
||||
|
||||
//extern SoftwareSerial K_30_Serial;
|
||||
extern unsigned long getValue(byte packet[]);
|
||||
extern void sendRequest(byte packet[]);
|
||||
@@ -79,7 +79,7 @@ float yourSensorReading(String type, String paramsAny) {
|
||||
BH1750_init();
|
||||
value = lightMeter.readLightLevel();
|
||||
}
|
||||
//==========================================================BH1750=================================================================
|
||||
//==========================================================co2=================================================================
|
||||
if (type == "valCO2") {
|
||||
K_30_Serial.begin(9600);
|
||||
sendRequest(readCO2);
|
||||
|
||||
Reference in New Issue
Block a user