[GH-ISSUE #1626] Using sendProgmem in code even with USE_PROGMEM_WEB_FILES commented out. #918

Open
opened 2026-02-28 00:05:27 +03:00 by kerem · 1 comment
Owner

Originally created by @n08i40k on GitHub (Feb 9, 2023).
Original GitHub issue: https://github.com/SpacehuhnTech/esp8266_deauther/issues/1626

Describe the bug
I commented out USE_PROGMEM_WEB_FILES in webfiles.h (to save memory).

After compiling an error occurred:
/home/n08i40k/esp8266_deauther-2/esp8266_deauther/wifi.cpp: In lambda function: wifi.cpp:426:76: error: 'indexhtml' was not declared in this scope if (settings::getWebSettings().captive_portal) sendProgmem(indexhtml, sizeof(indexhtml), W_HTML); ^ exit status 1 'indexhtml' was not declared in this scope

To Reproduce
Steps to reproduce the behavior:

  1. Comment out USE_PROGMEM_WEB_FILES in webfiles.h on line 5.
  2. Compile sketch.
  3. See error

Screenshots
изображение
изображение

Environment (please complete the following information):

  • OS: Bodhi Linux 5.4.0-137-generic
  • Browser Mozilla Firefox
  • Version 2.6.1
  • Hardware NodeMcu Lolin V3
Originally created by @n08i40k on GitHub (Feb 9, 2023). Original GitHub issue: https://github.com/SpacehuhnTech/esp8266_deauther/issues/1626 **Describe the bug** I commented out USE_PROGMEM_WEB_FILES in webfiles.h (to save memory). After compiling an error occurred: `/home/n08i40k/esp8266_deauther-2/esp8266_deauther/wifi.cpp: In lambda function: wifi.cpp:426:76: error: 'indexhtml' was not declared in this scope if (settings::getWebSettings().captive_portal) sendProgmem(indexhtml, sizeof(indexhtml), W_HTML); ^ exit status 1 'indexhtml' was not declared in this scope ` **To Reproduce** Steps to reproduce the behavior: 1. Comment out USE_PROGMEM_WEB_FILES in webfiles.h on line 5. 2. Compile sketch. 3. See error **Screenshots** ![изображение](https://user-images.githubusercontent.com/55545594/217824402-5d7eca14-8ffe-4d80-83cf-7981cb0bf815.png) ![изображение](https://user-images.githubusercontent.com/55545594/217824980-519f6f7e-535a-4c99-828e-d932c553154e.png) **Environment (please complete the following information):** - OS: Bodhi Linux 5.4.0-137-generic - Browser Mozilla Firefox - Version 2.6.1 - Hardware NodeMcu Lolin V3
Author
Owner

@welcome[bot] commented on GitHub (Feb 9, 2023):

Congrats on opening your first issue on this repository! 🎉
This is a automated message to help you avoid common pitfalls when asking for help online.
👉 Be sure to:
* 🇬🇧 Communicate in English so everybody can understand you
* 📖 Have a look at the Wiki and README for information
* 🔍 Search for similar issues (open and closed)
* ✍️ Provide enough information to understand, recreate and help out with your problem
* ℹ️ Let us know if you find a solution and please share it with us
* 📕 Close the issue when your problem has been solved

<!-- gh-comment-id:1424192577 --> @welcome[bot] commented on GitHub (Feb 9, 2023): Congrats on opening your first issue on this repository! 🎉<br> This is a automated message to help you avoid common pitfalls when asking for help online.<br> 👉 Be sure to:<br> * 🇬🇧 Communicate in English so everybody can understand you<br> * 📖 Have a look at the [Wiki](https://github.com/spacehuhntech/esp8266_deauther/wiki) and [README](https://github.com/SpacehuhnTech/esp8266_deauther/blob/v2/README.md) for information<br> * 🔍 Search for similar [issues (open and closed)](https://github.com/SpacehuhnTech/esp8266_deauther/issues?q=is%3Aissue+)<br> * ✍️ Provide enough information to understand, recreate and help out with your problem<br> * ℹ️ Let us know if you find a solution and please share it with us<br> * 📕 Close the issue when your problem has been solved
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/esp8266_deauther#918
No description provided.