mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 14:42:18 +03:00
кастомный сенсор
This commit is contained in:
13
src/YourSensor.cpp
Normal file
13
src/YourSensor.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "YourSensor.h"
|
||||
|
||||
float yourSensorReading(String type) {
|
||||
float value;
|
||||
if (type == "type1") {
|
||||
value++;
|
||||
} else if (type == "type2") {
|
||||
value--;
|
||||
} else if (type == "type3") {
|
||||
value = value + 10;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
Reference in New Issue
Block a user