Feb 03, 2021
09:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 03, 2021
09:57 AM
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.
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.
1 Reply
Feb 17, 2021
10:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 17, 2021
10:26 PM
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
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