mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 19:12:10 +01:00
v2.0.0 Release Candidate
Added functions for emitting the last command for a motor.
This commit is contained in:
parent
cfd3bdc4a1
commit
42947690a2
7 changed files with 50 additions and 12 deletions
4
Web.cpp
4
Web.cpp
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue