mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Moved writeTo to JsonObjectBase
This commit is contained in:
		| @@ -45,11 +45,7 @@ public: | ||||
|         addItem(JSON_OBJECT, v); | ||||
|     } | ||||
|  | ||||
|     void writeTo(char* buffer, size_t bufferSize) | ||||
|     { | ||||
|         StringBuilder sb(buffer, bufferSize); | ||||
|         writeTo(sb); | ||||
|     } | ||||
|     using JsonObjectBase::writeTo; | ||||
|  | ||||
| private: | ||||
|     ObjectContainer items[N]; | ||||
|   | ||||
| @@ -11,6 +11,11 @@ class JsonObjectBase | ||||
| { | ||||
| public: | ||||
|  | ||||
|     void writeTo(char* buffer, size_t bufferSize) | ||||
|     { | ||||
|         StringBuilder sb(buffer, bufferSize); | ||||
|         writeTo(sb); | ||||
|     } | ||||
|  | ||||
| protected: | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user