Add binary protocol v2 & v3 to websocket

This commit is contained in:
Terrence
2025-04-28 16:29:33 +08:00
parent 1f03d770cc
commit 5f8389c135
5 changed files with 86 additions and 13 deletions

View File

@@ -154,6 +154,8 @@ bool Ota::CheckVersion() {
cJSON_ArrayForEach(item, websocket) {
if (item->type == cJSON_String) {
settings.SetString(item->string, item->valuestring);
} else if (item->type == cJSON_Number) {
settings.SetInt(item->string, item->valueint);
}
}
has_websocket_config_ = true;