Notifications
Clear all

Displaying additional information on the webpage from DBW's "Build an ESP32CAM Robot Car"


Leonardo1123
(@leonardo1123)
Trusted Member
Joined: 1 year ago
Posts: 56
Topic starter  

Hey there!

I'm making a lot of great progress with my robot car. After getting some simpler examples working, I have now moved on to this Dronebot article!

I've managed to get it working and streaming. Since I haven't finished configuring my robot controls, I haven't fine-tuned the control aspect, but I'm comfortable with both adding more components of which there are examples already in the code, and configuring the control aspect of the code. 

One thing for which I didn't notice an example was a display of values being calculated or read by the car. Say for example I take the framerate (which is being written to the serial monitor), how would I instead (or in addition) send it to the webpage to be viewed by the user?

I have experience with web development, but not on this low of a level. Any and all help would be greatly appreciated, as has been appreciated all the help I've gotten already. 🙂

Fortune Favors the Bold


Ron liked
Quote
Topic Tags
Leonardo1123
(@leonardo1123)
Trusted Member
Joined: 1 year ago
Posts: 56
Topic starter  

The part that's tripping me up is I can't find an example in the current code of a value on the server being updated by the esp32. Start/stop for stream is a server-side handled event, it doesn't check if the stream actually started or not. 

So I know how to put the text "FPS: xxxx" into the HTML portion of the app, I'm confused as to how to procedurally update it from the esp32. 

Fortune Favors the Bold


ReplyQuote
Ron
 Ron
(@zander)
Noble Member
Joined: 2 years ago
Posts: 2262
 

@leonardo1123 I don't know or understand the linge very well, but if you look in the examples section of the IDE you will find client and server examples which should help I imagine

It is considered poor judgement to traverse a chasm in 2 leaps.


ReplyQuote