IFTTT and IoT
This reactive pattern can be easily applied to certain situations. For example, if a patient falls down, then call an ambulance, or if the temperature goes below 15 degrees, then turn off the AC, and so on. These are simple rules that we define that can help us automate a lot of processes.
In IoT, rules engines are key to automating most monotonous tasks. In this chapter, we are going to build a simple hardcoded rules engine that will continuously monitor the incoming data. If the incoming data matches any of our rules, it will execute a response.
Note
What we are building is a similar concept to ifttt.com (https://ifttt.com/discover), but is very specific to IoT devices that are present inside our framework. IFTTT (https://ifttt.com/discover) has no relation to what we are building in our book.