aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-03-20 19:20:59 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2015-03-20 19:20:59 +0100
commit3af7994f38791deeb1c5b746c049e702abb48878 (patch)
tree181ab028466a0dc77ef5058d9d09d7a90ee7618f /apps
parent97ad73ac5c0e8955fcc0478d12075423c8023e84 (diff)
downloadble-toys-3af7994f38791deeb1c5b746c049e702abb48878.tar.gz
ble-toys-3af7994f38791deeb1c5b746c049e702abb48878.tar.bz2
ble-toys-3af7994f38791deeb1c5b746c049e702abb48878.tar.xz
ble-toys-3af7994f38791deeb1c5b746c049e702abb48878.zip
o More relaxed regex parsing.
Diffstat (limited to 'apps')
-rw-r--r--apps/SoilMoistureIo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/SoilMoistureIo.cpp b/apps/SoilMoistureIo.cpp
index a2d50e4..7d8f5bb 100644
--- a/apps/SoilMoistureIo.cpp
+++ b/apps/SoilMoistureIo.cpp
@@ -251,7 +251,7 @@ void KeyValueSampleParser::process_line(shared_ptr<vector<uint8_t>> packet) {
auto timestamp = std::chrono::system_clock::now().time_since_epoch().count();
auto s = std::string((char *) packet->data(), packet->size());
- static const boost::regex e("([_a-zA-Z0-9]+)=([0-9]+)");
+ static const boost::regex e("([#_a-zA-Z0-9]+) *= *([0-9]+)");
auto start = s.cbegin();
auto end = s.cend();