mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 20:09:14 +03:00
новый сенсор
This commit is contained in:
@@ -4,6 +4,10 @@ float yourSensorReading(String type) {
|
|||||||
float value;
|
float value;
|
||||||
if (type == "name1") {
|
if (type == "name1") {
|
||||||
value++;
|
value++;
|
||||||
|
} else if (type == "name2") {
|
||||||
|
value--;
|
||||||
|
} else if (type == "name3") {
|
||||||
|
value = value + 10;
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user