Chapter 3
Aggregating Sensor Data

Now that we have a productive development workflow in place, it’s time to get our project into a production-level state. While connecting to our Nerves device over the wireless network is a great way to validate that things are working as expected, our goal is to get things working autonomously so that sensor data can be aggregated and published automatically when the device powers on. To achieve that, we’ll need to wrap each sensor in its own GenServer[45] and add it to our application supervision tree. That way we can leverage the fault-tolerant and reliable properties of Erlang and OTP for our IoT weather station.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.91.51