mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
analogsensors, outputs PWM, DAC, digital
This commit is contained in:
@@ -275,7 +275,7 @@ void WebDataService::write_analog(AsyncWebServerRequest * request, JsonVariant &
|
||||
uint8_t id = analog["id"]; // this is the unique key
|
||||
std::string name = analog["name"];
|
||||
float factor = analog["factor"];
|
||||
int16_t offset = analog["offset"];
|
||||
float offset = analog["offset"];
|
||||
uint8_t uom = analog["uom"];
|
||||
int8_t type = analog["type"];
|
||||
ok = EMSESP::analogsensor_.update(id, name, offset, factor, uom, type);
|
||||
|
||||
Reference in New Issue
Block a user