aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();