From 84c5c3faa2b99b4acf29ec822b17e61f591f66b0 Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 3 Oct 2020 16:31:06 +0200 Subject: [PATCH] render value from json string --- src/emsdevice.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/emsdevice.h b/src/emsdevice.h index f3d416226..65160f817 100644 --- a/src/emsdevice.h +++ b/src/emsdevice.h @@ -149,6 +149,12 @@ class EMSdevice { telegram_functions_.reserve(n); } + static void print_value_json(uuid::console::Shell & shell, + const __FlashStringHelper * key, + const __FlashStringHelper * name, + const __FlashStringHelper * suffix, + JsonObject & json); + // prints a ems device value to the console, handling the correct rendering of the type // padding is # white space // name is the name of the parameter @@ -192,7 +198,6 @@ class EMSdevice { Value & value, const __FlashStringHelper * suffix, const uint8_t format = 0) { - // create the value as a string using the render_value function char buffer[15]; if (Helpers::render_value(buffer, value, format) == nullptr) {