Browse Source

api: reference settings keys

network/test
Maxim Prokhorov 1 year ago
parent
commit
7703d9ba2b
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      code/espurna/api_common.cpp

+ 3
- 3
code/espurna/api_common.cpp View File

@ -74,9 +74,9 @@ void onVisible(JsonObject& root) {
}
void onConnected(JsonObject& root) {
root["apiEnabled"] = apiEnabled();
root["apiKey"] = apiKey();
root["apiRestFul"] = apiRestFul();
root[settings::keys::Enabled] = apiEnabled();
root[settings::keys::Key] = apiKey();
root[settings::keys::Restful] = apiRestFul();
}
void setup() {


Loading…
Cancel
Save