diff --git a/code/espurna/api_common.cpp b/code/espurna/api_common.cpp index 5cf81c2d..092c1dd6 100644 --- a/code/espurna/api_common.cpp +++ b/code/espurna/api_common.cpp @@ -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() {