Technical requirements
You can find the code for this chapter in this book's GitHub repository, here: https://github.com/PacktPublishing/Internet-of-Things-with-ESP32/tree/main/ch9.
The external libraries can be found here: https://github.com/PacktPublishing/Internet-of-Things-with-ESP32/tree/main/common.
In terms of hardware, you will need the following:
- Three devkits: One for each node in the BLE mesh network
- Three LEDs: One for each node
- A relay: For the switch node
- A TLS2561 light sensor: For the light sensor node
To set up the BLE network and test the project, we will use a mobile application from Nordic Semiconductor ASA called nRF Mesh. It is available on both iOS and Android platforms.
Check out the following video to see the code in action: https://bit.ly/3yxFBae