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); |         addItem(JSON_OBJECT, v); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     void writeTo(char* buffer, size_t bufferSize) |     using JsonObjectBase::writeTo; | ||||||
|     { |  | ||||||
|         StringBuilder sb(buffer, bufferSize); |  | ||||||
|         writeTo(sb); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
| private: | private: | ||||||
|     ObjectContainer items[N]; |     ObjectContainer items[N]; | ||||||
|   | |||||||
| @@ -11,6 +11,11 @@ class JsonObjectBase | |||||||
| { | { | ||||||
| public: | public: | ||||||
|  |  | ||||||
|  |     void writeTo(char* buffer, size_t bufferSize) | ||||||
|  |     { | ||||||
|  |         StringBuilder sb(buffer, bufferSize); | ||||||
|  |         writeTo(sb); | ||||||
|  |     } | ||||||
|  |  | ||||||
| protected: | protected: | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user