v2.0.0 Release Candidate

Added functions for emitting the last command for a motor.
This commit is contained in:
Robert Strouse 2023-07-07 15:25:01 -07:00
parent cfd3bdc4a1
commit 42947690a2
7 changed files with 50 additions and 12 deletions

View file

@ -225,6 +225,10 @@ void Web::handleLoginContext(WebServer &server) {
JsonObject obj = doc.to<JsonObject>();
obj["type"] = static_cast<uint8_t>(settings.Security.type);
obj["permissions"] = settings.Security.permissions;
obj["serverId"] = settings.serverId;
obj["version"] = settings.fwVersion;
obj["model"] = "ESPSomfyRTS";
obj["hostname"] = settings.hostname;
serializeJson(doc, g_content);
server.send(200, _encoding_json, g_content);
}