Testing the project
In the test, we will connect the devkit to the RainMaker platform, as we did earlier in Chapter 7, ESP32 Security Features For Production-Grade Devices, then provide baby-crying sounds to see whether the event is generated and passed to the RainMaker platform. Let’s do this in steps:
- Make sure the devkit is not registered as another device in the RainMaker platform by checking the RainMaker mobile application. If registered, remove it from the mobile application.
Figure 12.16: The RainMaker mobile application with no device registered
- Flash the application on the devkit:
$ idf.py erase-flash flash monitor
- A QR code will be printed on the serial console. Scan it with the RainMaker mobile application by pressing the Add Device button that is shown in step 1.
Figure 12.17: QR code to provision the device to the local WiFi, then the RainMaker
- Confirm that the device is provisioned...