mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-28 15:12:19 +03:00
добавил шаблон любого сенсора
This commit is contained in:
9
src/sensors/YourSensor.cpp
Normal file
9
src/sensors/YourSensor.cpp
Normal file
@@ -0,0 +1,9 @@
|
||||
#include "sensors/YourSensor.h"
|
||||
|
||||
float yourSensorReading(String type) {
|
||||
float value;
|
||||
if (type == "name1") {
|
||||
value++;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
Reference in New Issue
Block a user