forked from gronod/squeezelite-esp32
update CSpot
This commit is contained in:
@@ -42,4 +42,11 @@ std::string bell::JSONObject::toString()
|
||||
free(body);
|
||||
return retVal;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<uint8_t> bell::JSONObject::toVector() {
|
||||
char *body = cJSON_Print(this->body);
|
||||
std::vector<uint8_t> res(body, body + strlen(body));
|
||||
free(body);
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user