sending part of IoT states

This commit is contained in:
Xiaoxia
2025-03-08 04:04:40 +08:00
parent b8bf6bea2e
commit 8267f59a6a
5 changed files with 33 additions and 16 deletions

View File

@@ -25,7 +25,7 @@ public:
void AddThing(Thing* thing);
std::string GetDescriptorsJson();
std::string GetStatesJson();
bool GetStatesJson(std::string& json, bool delta = false);
void Invoke(const cJSON* command);
private:
@@ -33,6 +33,7 @@ private:
~ThingManager() = default;
std::vector<Thing*> things_;
std::map<std::string, std::string> last_states_;
};