MCPcopy Create free account
hub / github.com/bblanchon/ArduinoJson / setFloat

Method setFloat

src/ArduinoJson/Variant/VariantData.hpp:473–478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471
472 template <typename T>
473 enable_if_t<sizeof(T) == 4, bool> setFloat(T value, ResourceManager*) {
474 ARDUINOJSON_ASSERT(type_ == VariantType::Null); // must call clear() first
475 type_ = VariantType::Float;
476 content_.asFloat = value;
477 return true;
478 }
479
480 template <typename T>
481 enable_if_t<sizeof(T) == 8, bool> setFloat(T value, ResourceManager*);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected