Home Application Breakdown
Learn how a home application processes signals from a phone app by sequencing tasks such as checking local time, retrieving sunset time, and turning on lights after sunset. Understand the importance of breaking down tasks into statements and the need for gradual learning when developing application features.
We'll cover the following...
The home application
Previously, we discussed the problem of turning the outdoor lights on and how it can be solved. In this lesson, we’ll closely examine the steps required from the home application perspective.
At first, the home application will have absolutely nothing to do, because it will just sit and wait for a signal from the phone app. However, when it gets that signal, it’ll wake up and start to do its work.
When the home application gets the message from the phone, the first thing it needs to do is one of two things. It can either check the local time, or it can contact the sunset service to get the current sunset time. The order of these two operations isn’t essential because we need both, so we can compare them.
When ...