ESP32 / ESP8266 cpplinq: first operator with condition

Опубликовано: 07 Апрель 2026
на канале: Techtutorialsx
431
12

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:
https://www.dfrobot.com/product-1590....

ESP8266 FireBeetle board:
https://www.dfrobot.com/product-1634....


Written tutorial with installation instructions for cpplinq and a code sample:
https://techtutorialsx.com/2019/04/12...

C++ Lambda syntax:
https://en.cppreference.com/w/cpp/lan...

Related Written tutorials:
Count operator: https://techtutorialsx.com/2019/04/17...
Concatenating arrays: https://techtutorialsx.com/2019/04/20...
The average operator: https://techtutorialsx.com/2019/04/25...

A lot of ESP32 written tutorials (more than 250!):
https://techtutorialsx.com/category/e...

ESP8266 tutorials:
https://techtutorialsx.com/category/e...