mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-16 02:52:34 +01:00
Feature: Added basic Grid Profile parser which shows the used profile and version
Other values are still outstanding.
This commit is contained in:
@@ -42,6 +42,9 @@ void WebApiGridProfileClass::onGridProfileStatus(AsyncWebServerRequest* request)
|
||||
auto data = inv->GridProfile()->getRawData();
|
||||
|
||||
copyArray(&data[0], data.size(), raw);
|
||||
|
||||
root["name"] = inv->GridProfile()->getProfileName();
|
||||
root["version"] = inv->GridProfile()->getProfileVersion();
|
||||
}
|
||||
|
||||
response->setLength();
|
||||
|
||||
Reference in New Issue
Block a user