add uuid to board

This commit is contained in:
Terrence
2025-02-11 16:56:23 +08:00
parent 2d718a0cbc
commit ac93e88d17
7 changed files with 77 additions and 1 deletions

View File

@@ -71,6 +71,19 @@ bool Ota::CheckVersion() {
return false;
}
cJSON *activation = cJSON_GetObjectItem(root, "activation");
if (activation != NULL) {
cJSON* message = cJSON_GetObjectItem(activation, "message");
if (message != NULL) {
activation_message_ = message->valuestring;
}
cJSON* code = cJSON_GetObjectItem(activation, "code");
if (code != NULL) {
activation_code_ = code->valuestring;
}
has_activation_code_ = true;
}
cJSON *mqtt = cJSON_GetObjectItem(root, "mqtt");
if (mqtt != NULL) {
Settings settings("mqtt", true);