XMC4700 http server additional documentation and examples

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User21132
Level 1
Level 1
I am currently using the XMC4700_lwip_httpserver example as a baseline for a custom server application. I have successfully built and run the application, and I can access the server from my browser.
I have also been able to modify the webpage by editing the index file and running the "makefsdata.exe" to generate new "fsdata.c" files to use in the application. However, the application I want to create
needs to be able to display real-time data in the browser sent from the MCU. In short, it would be very useful to me if I could have some examples or directions of how to modify the existing code to display
a character string in the browser that I can control from the MCU (or even just an integer that counts seconds in the MCU, where the value of that integer updates in real-time in the browser). Also, while
the demo shows how to send data the other way (i.e. from the browser to the MCU), it's not really clear to me what I would need to do if I wanted to send a character array (or random integer values) to the
MCU. I can understand some of the underlying mechanisms from the code (such as how the event listeners are mapped from the index file to the corresponding c functions), but there are still some significant
gaps in my knowledge. Similar to my previous request, it would be very useful to me if I could have some examples or directions on how to add a text field to the index file, such that when I type into it from
the browser and hit enter, I can read the updated character values from the MCU.
0 Likes
1 Reply
SudheeshK
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted
Hello,

Sorry for the delay in our response.

Could you please let me know, from where did you download the example project "XMC4700_lwip_httpserver"? I could not find it in the available Dave example projects.
Also, please let me know, whether you are using Dave3 or Dave 4?

Thanks and Regards,
Sudheesh
0 Likes