I want to build a simple web server on my NodeMCU device to read temperature and humidity from a BME280 sensor. Which Lua modules do I need, and what are the key architectural recommendations from the documentation regarding implementing web servers on the ESP8266?
Navigate to the NodeMCU Documentation homepage. Locate the 'Lua Modules' section and identify the 'httpserver' and 'bme280' modules. Use the search bar to find documentation on 'Techniques for Reducing RAM and SPIFFS footprint' or similar architectural advice for web servers on ESP8266. Summarize the key architectural advice found regarding implementing web servers on the ESP8266. Synthesize the identified modules and architectural advice into a concise answer.
Identify 'httpserver' as the necessary module for web server functionality. Identify 'bme280' as the necessary module for the BME280 sensor. State that the documentation advises against implementing complex user interfaces or HTTP web servers directly on the ESP8266. Explain that the ESP8266 is an IoT device with limited scope, and complex tasks should be offloaded to a more capable general-purpose system (e.g., Raspberry Pi) in a tiered approach.