Creating the server side
We now have the base ready and can continue with implementing the project-specific parts. The Raspberry Pi that is connected with the circuit and the lamp will act as a server. It will run a tiny web server that can be reached through a client of your choice using a web browser.
For the server side, we will adapt and evolve the server example used in Chapter 9, Making a Media Hub on the Raspberry Pi, and combine it with an updated version of the gpio-packt
recipe from Chapter 5, Creating, Developing, and Deploying on the Raspberry Pi, . To start with, we need to add the meta-packt_rpi
layer used in earlier chapters of the book. We have already ensured that our newly created layer has a higher priority then meta-packt_rpi ...
Get Yocto for Raspberry Pi now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.