Uploaded August 2019 | Updated September 2026, 1 week ago
How to get the first element of an array that meets a given criteria, using cpplinq and the first operator.
The tests shown on the video were done on the ESP32, but the library also works on the ESP8266.
ESP32 FireBeetle board:
dfrobot.com/product-1590.html
ESP8266 FireBeetle board:
dfrobot.com/product-1634.html
Written tutorial with installation instructions for cpplinq and a code sample:
techtutorialsx.com/2019/04/12/esp32-arduino-getting-started-with-the-cpplinq-library
C++ Lambda syntax:
en.cppreference.com/w/cpp/language/lambda
Related Written tutorials:
- Count operator: techtutorialsx.com/2019/04/17/esp32-arduino-cpplinq-the-count-operator
- Concatenating arrays: techtutorialsx.com/2019/04/20/esp32-cpplinq-concatenating-arrays
- The average operator: techtutorialsx.com/2019/04/25/esp32-arduino-cpplinq-the-average-operator
A lot of ESP32 written tutorials (more than 250!):
- techtutorialsx.com/category/esp32
ESP8266 tutorials:
- techtutorialsx.com/category/esp8266
How to get the first element of an array that meets a given criteria, using cpplinq and the first operator.
The tests shown on the video were done on the ESP32, but the library also works on the ESP8266.
ESP32 FireBeetle board:
dfrobot.com/product-1590.html
ESP8266 FireBeetle board:
dfrobot.com/product-1634.html
Written tutorial with installation instructions for cpplinq and a code sample:
techtutorialsx.com/2019/04/12/esp32-arduino-getting-started-with-the-cpplinq-library
C++ Lambda syntax:
en.cppreference.com/w/cpp/language/lambda
Related Written tutorials:
- Count operator: techtutorialsx.com/2019/04/17/esp32-arduino-cpplinq-the-count-operator
- Concatenating arrays: techtutorialsx.com/2019/04/20/esp32-cpplinq-concatenating-arrays
- The average operator: techtutorialsx.com/2019/04/25/esp32-arduino-cpplinq-the-average-operator
A lot of ESP32 written tutorials (more than 250!):
- techtutorialsx.com/category/esp32
ESP8266 tutorials:
- techtutorialsx.com/category/esp8266










![ESP32 - Controlling a buzzer [Demo]
Demo showing controlling a buzzer with the ESP32.
You can check a detailed written tutorial with full source code and electric diagram at my blog:
https://techtutorialsx.com/2017/07/01/esp32-arduino-controlling-a-buzzer-with-pwm/
Check more tutorials on the ESP32 and ESP8266 at my blog:
https://techtutorialsx.com/ ESP32 - Controlling a buzzer [Demo]](https://i.ytimg.com/vi/hnKIlx4Kkao/mqdefault.jpg)