ovidiucp/TinyWebServer

Flash.h

Closed this issue · 3 comments

Just wanted to say I had problems with the Flash.h library.

Finally tracked this down to

http://arduiniana.org/libraries/flash/

Great solution as I have to store the Jquery locally as I will be running the project in a location without network covereage! in my project and was struggling finding a solution which showed how to do this, thank you.

What was the issue specifically, can you please elaborate?

I am using google Arduino program to Edit / compile the code before installing on my Arduino UNO and the Flash.h library is not provided as default.

The error when compiling the code is,

BlinkLed.ino: In function 'void send_file_name(TinyWebServer&, const char_)':
BlinkLed:75: error: no match for 'operator<<' in 'web_server << (const _FlashStringHelper)({...})'
BlinkLed:83: error: no match for 'operator<<' in 'Serial << (const __FlashStringHelper*)({...})'

By Adding the flash.h library downloaded using the above link and adding it into the Libraries folder of your Arduino project. The code compiles and can be deployed to the Arduino. The code works first time.

The Flash library is listed as an external dependency in the Readme file, I've just made it more explicit. Thanks for the report!