Feature: Added basic Grid Profile parser which shows the used profile and version

Other values are still outstanding.
This commit is contained in:
Thomas Basler
2023-12-09 11:12:37 +01:00
parent c9508d2660
commit 00bc631e87
8 changed files with 63 additions and 0 deletions

View File

@@ -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();