ovidiucp / TinyWebServer

Small web server for Arduino, fits in 10KB ROM, less than 512 bytes RAM
http://www.webweavertech.com/ovidiu/weblog/archives/000484.html
GNU Lesser General Public License v2.1
245 stars 65 forks source link

Flash.h #17

Closed tomkett closed 11 years ago

tomkett commented 11 years ago

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.

ovidiucp commented 11 years ago

What was the issue specifically, can you please elaborate?

tomkett commented 11 years ago

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_filename(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.

ovidiucp commented 11 years ago

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