Writing the Android Server
Time to write the door lock server. Instead of relying on a personal computer to perform the heavy lifting of running Python scripts to respond to incoming requests, we are going to use the computing power embedded in the Android smartphone itself. Even older Android phones are computationally more powerful than desktop computers were only a few years before the Android OS was introduced.
Besides, an Android phone acting as this project’s server offers a number of advantages:
Power requirements are far lower than a desktop computer, making for much greener energy consumption.
The phone has onboard Wi-Fi, allowing it to be placed anywhere within range of the home’s wireless access point.
The phone has an onboard ...