3 #define FMT_HEADER_ONLY 13 timestamp = ts.
value().get<
double>();
21 if( el.value().is_boolean())
23 value = el.value().get<
bool>();
25 else if( el.value().is_number())
27 value = el.value().get<
double>();
34 plot_data->pushBack( {
timestamp, value} );
enum MQTTPropertyCodes value
const uint8_t * data() const
FMT_INLINE std::basic_string< Char > format(const S &format_str, Args &&...args)
iterator end() noexcept
returns an iterator to one past the last element
bool parseMessageImpl(double timestamp)
static JSON_HEDLEY_WARN_UNUSED_RESULT basic_json from_cbor(InputType &&i, const bool strict=true, const bool allow_exceptions=true, const cbor_tag_handler_t tag_handler=cbor_tag_handler_t::error)
create a JSON value from an input in CBOR format
bool parseMessage(const MessageRef msg, double timestamp) override
static JSON_HEDLEY_WARN_UNUSED_RESULT basic_json from_msgpack(InputType &&i, const bool strict=true, const bool allow_exceptions=true)
create a JSON value from an input in MessagePack format
bool parseMessage(const MessageRef msg, double timestamp) override
iterator find(KeyT &&key)
find an element in a JSON object
static JSON_HEDLEY_WARN_UNUSED_RESULT basic_json from_bson(InputType &&i, const bool strict=true, const bool allow_exceptions=true)
Create a JSON value from an input in BSON format.
static JSON_HEDLEY_WARN_UNUSED_RESULT basic_json parse(InputType &&i, const parser_callback_t cb=nullptr, const bool allow_exceptions=true, const bool ignore_comments=false)
deserialize from a compatible input
bool parseMessage(const MessageRef msg, double timestamp) override
PlotData & getSeries(const std::string &key)
iteration_proxy< iterator > items() noexcept
helper to access iterator member functions in range-based for
bool parseMessage(const MessageRef msg, double timestamp) override
reference value() const
return the value of an iterator