diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-03-20 19:20:59 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-03-20 19:20:59 +0100 |
commit | 3af7994f38791deeb1c5b746c049e702abb48878 (patch) | |
tree | 181ab028466a0dc77ef5058d9d09d7a90ee7618f /apps | |
parent | 97ad73ac5c0e8955fcc0478d12075423c8023e84 (diff) | |
download | ble-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.cpp | 2 |
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(); |