forked from xiaozhi/xiaozhi-esp32
sending part of IoT states
This commit is contained in:
@@ -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_;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user