-->
Page 1 of 1

Very confused about websockets and file system?

PostPosted: Wed May 18, 2016 2:00 pm
by youman
Hi friends,

I need to update the web page without refreshing. This has to be possible. I can already send a page, however fopen is not working for me so I can only send string data. Please help. I need to use either ajax or websockets in javascript to update my page without a refresh.

Thanks. Please help!

Re: Very confused about websockets and file system?

PostPosted: Fri May 20, 2016 3:21 am
by Sprite_tm
youman wrote:Hi friends,

I need to update the web page without refreshing. This has to be possible. I can already send a page, however fopen is not working for me so I can only send string data. Please help. I need to use either ajax or websockets in javascript to update my page without a refresh.

Thanks. Please help!


Yes, that is possible. The espfs doesn't use the normal fopen() etc calls, but espFsOpen/espFsRead/espFsClose. For ajax/websockets: what is your problem? Both are pretty much doable and there's example code in the esphttpd project.