mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
optimize endpoints, so re-use where possible
This commit is contained in:
@@ -66,6 +66,7 @@ void WebDataService::core_data(AsyncWebServerRequest * request) {
|
||||
obj["p"] = emsdevice->product_id(); // productid
|
||||
obj["v"] = emsdevice->version(); // version
|
||||
obj["e"] = emsdevice->count_entities(); // number of entities
|
||||
obj["url"] = emsdevice->device_type_name(); // non-translated, lower-case, used for API URL in customization page
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user