From 682a15722257c385bcbdd0b4b28cbd398dab6add Mon Sep 17 00:00:00 2001 From: john30 Date: Mon, 25 May 2015 11:10:24 +0200 Subject: [PATCH] added getLastSlaveData() --- src/lib/ebus/message.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/ebus/message.h b/src/lib/ebus/message.h index 57ce0217..87fc2ffc 100644 --- a/src/lib/ebus/message.h +++ b/src/lib/ebus/message.h @@ -216,6 +216,12 @@ public: result_t decodeLastData(ostringstream& output, bool leadingSeparator=false, DataFormat dataFormat=df_standard, const char* fieldName=NULL, signed char fieldIndex=-1); + /** + * Get the last seen slave data. + * @return the last seen slave @a SymbolString. + */ + SymbolString& getLastSlaveData() { return m_lastSlaveData; } + /** * Get the time when @a m_lastValue was last stored. * @return the time when @a m_lastValue was last stored, or 0 if this message was not decoded yet.