mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
Add value_info
This commit is contained in:
@@ -45,12 +45,6 @@ void WebAPIService::webAPIService(AsyncWebServerRequest * request) {
|
||||
// get cmd, we know we have one
|
||||
String cmd = request->getParam(F_(cmd))->value();
|
||||
|
||||
// look up command in our list
|
||||
if (Command::find_command(device_type, cmd.c_str()) == nullptr) {
|
||||
request->send(400, "text/plain", F("Invalid cmd"));
|
||||
return;
|
||||
}
|
||||
|
||||
String data;
|
||||
if (request->hasParam(F_(data))) {
|
||||
data = request->getParam(F_(data))->value();
|
||||
|
||||
Reference in New Issue
Block a user