0.8.910008-zero

This commit is contained in:
Patrick Amrhein 2024-03-14 10:04:55 +01:00
parent 1c4a83dfd0
commit 3dfbee82c7
8 changed files with 1204 additions and 716 deletions

View file

@ -718,6 +718,8 @@ class RestApi {
#if defined(PLUGIN_ZEROEXPORT)
void getZeroExport(JsonObject obj) {
obj[F("enabled")] = (bool) mConfig->plugin.zeroExport.enabled;
obj[F("log_over_webserial")] = (bool) mConfig->plugin.zeroExport.log_over_webserial;
obj[F("log_over_mqtt")] = (bool) mConfig->plugin.zeroExport.log_over_mqtt;
// Groups
obj[F("max_groups")] = ZEROEXPORT_MAX_GROUPS;
JsonArray arrGroup = obj.createNestedArray(F("groups"));