-->
Page 1 of 1

HttpServer Websocket sample: 404

PostPosted: Sun Apr 10, 2016 6:35 am
by Nein9
Hiya! I've been messing around with some of the samples, but having trouble now. I cannot get this example to work completely. The webserver appears to run fine, but does not serve me the page. In the terminal over serial I see the following error:
File wasn't found: index.html

I ran make, make flash; no problems there. From experimenting with other code I recall that the web-payload is flashed separately. However I cannot find any information about this using the SMING framework. What am I missing ?

Re: HttpServer Websocket sample: 404

PostPosted: Mon Apr 11, 2016 2:52 pm
by Nein9
Well, new day. Since there were no replies I decided to take a look again myself, and found the issue.

The example makes use of the spiffs library, however the HttpServer_WebSockets/Makefile-user.mk defines DISABLE_SPIFFS set to 1. Set it to 0, comment or remove this line, and it builds an additional spiff_rom.bin which is flashed at 0x44000.

Checked the other web examples, but the makefile error seems only present on the websockets example.