-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Hello - I threw a small library on top of this to allow saving/loading configuration from a json file, and I was hoping to be able to expose a JsonObject through my config class so I could just interact with it as config.jsonObj["value"]... I was able to get the class working with the Buffer and Object defined within the init() and save() functions, but when I try to pull the Buffer and Object into member variables, it fails with the below errors.
- use of deleted function 'ArduinoJson::JsonObject& ArduinoJson::JsonObject::operator=(const ArduinoJson::JsonObject&)'
- 'ArduinoJson::JsonObject& ArduinoJson::JsonObject::operator=(const ArduinoJson::JsonObject&)' is implicitly deleted because the default definition would be ill-formed
- 'ArduinoJson::Internals::ReferenceType& ArduinoJson::Internals::ReferenceType::operator=(const ArduinoJson::Internals::ReferenceType&)' is private
I have the whole code posted in a gist here https://gist.github.com/bepursuant/fc558c18f409271583fe3d3331fe8b5a , but the offending line is:
this->jsonObj = this->jsonBuf.parseObject(buf.get());
I'm sure my question stems from a misunderstanding of the buffers/scoping in C++, or of exactly how this library should be used... so I apologize upfront for the probably somewhat ignorant question.