Create DBus objects

Create DBus objects for configured sensors.

Change-Id: I26e0b9bc81ce8bf1798e7f67396ace1b954a2028
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/mainloop.cpp b/mainloop.cpp
index 78478a6..3ba365c 100644
--- a/mainloop.cpp
+++ b/mainloop.cpp
@@ -23,7 +23,6 @@
 #include "hwmon.hpp"
 #include "sysfs.hpp"
 #include "mainloop.hpp"
-#include "interface.hpp"
 
 using namespace std::literals::chrono_literals;
 
@@ -75,7 +74,21 @@
             continue;
         }
 
-        auto value = std::make_tuple(std::move(i.second), std::move(label));
+        Object o;
+        std::string objectPath{_root};
+
+        objectPath.append("/");
+        objectPath.append(i.first.first);
+        objectPath.append("/");
+        objectPath.append(label);
+
+        auto iface = std::make_shared<ValueObject>(_bus, objectPath.c_str());
+        o.emplace(InterfaceType::VALUE, iface);
+
+        auto value = std::make_tuple(
+                         std::move(i.second),
+                         std::move(label),
+                         std::move(o));
 
         state[std::move(i.first)] = std::move(value);
     }