ESP8266 Webserver Project

Moderator: Sprite_tm

User avatar
By youman
#47616 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!
User avatar
By Sprite_tm
#47704
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.