From bceeb5f4f913c67d3bccf197d2a25852cd3359d9 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 11 Nov 2023 09:38:42 +0100 Subject: [PATCH] add access to data --- ChangeLog.md | 5 +++++ src/lib/ebus/symbol.h | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog.md b/ChangeLog.md index 546d728b..87893857 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -6,12 +6,17 @@ * fix MacOS build * fix name prefix warnings in Home Assistant MQTT discovery integration * fix impossible usage of multi-field writes in MQTT integration +* fix initial broadcast scan +* fix potentially unusable SSL context +* fix SYN generator timing +* fix missing check for PB/SB validity ## Features * add temperatures in Kelvin and ... to Home Assistant MQTT discovery integration * add options to turn off scanconfig and limit number of retries * remove dependency on argp * add time fields to Home Assistant MQTT discovery integration ++ add templates endpoint to HTTP JSON # 23.2 (2023-07-08) diff --git a/src/lib/ebus/symbol.h b/src/lib/ebus/symbol.h index 53546395..d0680517 100755 --- a/src/lib/ebus/symbol.h +++ b/src/lib/ebus/symbol.h @@ -294,6 +294,12 @@ class SymbolString { return m_data.size() - lengthOffset - 1; } + /** + * Return a pointer to the data bytes. + * @return a pointer to the data bytes. + */ + const symbol_t* data() const { return m_data.data(); } + /** * Return the data byte at the specified index (within DD). * @param index the index of the data byte (within DD) to return.