In this chapter, we explored how we can build an Android controlled sensor node using the ESP32 and an Android-based socket server. We learned how to deploy MicroPython on the ESP32 and how to install the asyncio module. We also examined how to write a script that would allow us to connect to a socket server and transmit and receive data from it.
The example we used simply sent fake sensor data in JSON format to the server and accepted data from the server in JSON format. The received messages were then parsed and used to control the LEDs, which can now be swapped out for more interesting control schemes, such as motors, and relays.
In the next chapter, we will design and build a basic object detection mechanism using machine learning and MicroPython.