added getLastSlaveData()

This commit is contained in:
john30
2015-05-25 11:10:24 +02:00
parent 39c00de51e
commit 682a157222
+6
View File
@@ -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.