• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 Buid webserver

Q&A Forum › Category: ESP32 › ESP32 Buid webserver
0 Vote Up Vote Down
Ferdinando Dossena asked 4 years ago

Hello,
in the course ESP32 build webserver on page 248 in the listing I don’t understand the following notation:
[] (AsyncWebServerRequest * request) {….
* request is a pointer of type AsyncWebServerRequest or what else? does [ ] mean that an array is returned?

Thanks
Best regards
Ferdinnado

2 Answers
0 Vote Up Vote Down
Ferdinando Dossena answered 4 years ago

Sorry I forgot the function pointers, now I think it is: * request is a AsyncWebServerRequest object pointer to allow use the send method and returns an array … can it be?

0 Vote Up Vote Down
Ferdinando Dossena answered 4 years ago

I found the solution: C++ Lambda functions [capture] (argument list) {body function}
Sorry but I didn’t know about this C ++ feature.

Regards
Ferdinando

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.