From 3af7994f38791deeb1c5b746c049e702abb48878 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 20 Mar 2015 19:20:59 +0100 Subject: o More relaxed regex parsing. --- apps/SoilMoistureIo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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> 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(); -- cgit v1.2.3