mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-01 21:01:30 +02:00
Add overload JsonObjectSuscript::set(value, decimals)
(issue #143)
This commit is contained in:
@ -54,6 +54,11 @@ class JsonObjectSubscript
|
||||
return _object.set(_key, value);
|
||||
}
|
||||
|
||||
template <typename TValue>
|
||||
FORCE_INLINE bool set(TValue value, uint8_t decimals) {
|
||||
return _object.set(_key, value, decimals);
|
||||
}
|
||||
|
||||
FORCE_INLINE JsonVariant get() { return _object.get(_key); }
|
||||
|
||||
void writeTo(Internals::JsonWriter& writer) const {
|
||||
|
Reference in New Issue
Block a user