forked from bblanchon/ArduinoJson
Add overload JsonObjectSuscript::set(value, decimals) (issue #143)
This commit is contained in:
1 parent
b9e3255c9e
commit
9f3ce18f06
6 files changed
+48
-18
No files matched your search
@@ -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