make ide-vscode from a sample project directoryand have a look in
.vscode/c_cpp_properties.json. Something similar could be done for CLion perhaps?
I found another issue with the flashing on Windows
... ESPTOOL2 out/Esp8266/debug/firmware/rom0.bin SSL support disabled make: Nothing to be done for `application'. make: Leaving directory `/c/tools/Sming/samples/Basic_Blink' Killing Terminal to free COM5 /bin/sh: : command not found make: [kill_term] Error 127 (ignored) WriteFlash 0x00000=out/Esp8266/debug/firmware/rboot.bin 0x000fa000=out/Esp8266/debug/firmware/partitions.bin 0x00002000=out/Esp8266/debug/firmware/rom0.bin 0x000fc000=/C/tools/Sming/Sming/Arch/Esp8266/Components/esp8266/ESP8266_NONOS_SDK/bin/esp_init_data_default.bin Traceback (most recent call last): File "c:\tools\Sming\Sming\Components\Storage\Tools\hwconfig\hwconfig.py", line 114, in <module> main() File "c:\tools\Sming\Sming\Components\Storage\Tools\hwconfig\hwconfig.py", line 106, in main output = globals()['handle_' + args.command](args, config, part) File "c:\tools\Sming\Sming\Components\Storage\Tools\hwconfig\hwconfig.py", line 52, in handle_flashcheck filesize = os.path.getsize(filename) File "c:\Python310\lib\genericpath.py", line 50, in getsize return os.stat(filename).st_size FileNotFoundError: [WinError 3] The system cannot find the path specified: '/C/tools/Sming/Sming/Arch/Esp8266/Components/esp8266/ESP8266_NONOS_SDK/bin/esp_init_data_default.bin' make: *** [flash] Error 1
c:\tools\Sming\Sming\Arch\Esp8266\Components\esp8266\ESP8266_NONOS_SDK\bin\esp_init_data_default.bin is there, but it looks like it's used somewhere where the path is not inflated into Windows path
#include <Adafruit_BME280_Library>. Perhaps you could test it?
make config-clean clean components-cleanthen rebuild.
filesize = os.path.getsize(fixpath(filename)). NB. I develop on Windows but haven't encountered this problem - I switched to WSL2 as it's considerably faster. I'll get a fix submitted shortly once I've checked it.
Hello @mikee47 & @slaff, is it possible to add a new method signature for HttpResourceTree::setDefault, which allows to register a default path and a plugin or a list of plugins? I want to secure all registered paths with basic authentication. Currently there is no way to secure the default path.
I found out that I can use
server.path.set("*", handler, plugin)
to set a handler for the default path with a plugin.