iotappstory / ESP-Library

Software Distribution and Management Over the Air
GNU Lesser General Public License v2.1
124 stars 35 forks source link

Wemos-IASLoader:90:70: error: 'chipId' is not captured #100

Closed 877dev closed 5 years ago

877dev commented 5 years ago

Arduino IDE 1.8.8 ESP-Library-2.0.1 Wemos D1 mini (genuine)

Getting the following error when verifying:

**C:\Program Files (x86)\Arduino\libraries\ESP-Library-2.0.1\examples\Wemos\Wemos-IASLoader\Wemos-IASLoader.ino: In lambda function:

Wemos-IASLoader:90:70: error: 'chipId' is not captured

dispTemplate_threeLineV2(F("Connect to"), F("Wi-Fi"), "xxxxx-" + chipId);

exit status 1 'chipId' is not captured**

CwlBroeders commented 5 years ago

the sketch is running into a problem on the following code (line 90 in the example sketch)

IAS.onConfigMode([]() { dispTemplate_threeLineV2(F("Connect to"), F("Wi-Fi"), "xxxxx-" + chipId); });

the chipId is used to make a unique SSID (handy in classroom situations to recognise the correct SSID to connect to) for now u can remove the chipId in the sketch where it is used, iirc this problem should be fixed in the next library update