Page 2 of 2

Re: Embedded device controlled from the Web without ESP

Posted: Tue Apr 29, 2025 4:04 pm
by Nico595
Hi Steve,

Thank you so much for your answer.

I use often Mozilla Firefox but I will try with Chrome tonight.
The Windows driver is the cdc driver provided by Microchip.

Re: Embedded device controlled from the Web without ESP

Posted: Tue Apr 29, 2025 5:11 pm
by Nico595
I just tried with Chrome, the Request function work fine. After that I sent cmd packet to set a value, work fine. also I display the return value by the device.

I am very happy, now I can connect my device to the Web App :)

I will design a light version of my Pc App with only control and feedback. I will also try with Chrome Linux browser.
About Web App, I can't find numerical display, I have Gauge and Text but Text is a string and Gauge is too big because I have many values.

I must convert received String to Dec to display the number between 1 - 99. I can create a macro to do that, but is it the best method ?

Re: Embedded device controlled from the Web without ESP

Posted: Tue Apr 29, 2025 6:11 pm
by Steve-Matrix
That's great news. I will make a note to check on Firefox and investigate their support for the Serial API.

Re: Embedded device controlled from the Web without ESP

Posted: Tue Apr 29, 2025 6:20 pm
by Nico595
Thanks Steve.

Mozilla Firefox stay a very popular web browser.

EDIT: I used the JS windows to convert my ascii string return value in string number. It's very perfect. With the USB Com I can design a light Web App to drive my device :)
NOTE: I tried add Charts and Gauge but not visible in the web browser, may be an external plug-in. Also, can I use PHP code in the page if I rename index.html to index.php ?

Re: Embedded device controlled from the Web without ESP

Posted: Wed Apr 30, 2025 6:00 pm
by Steve-Matrix
Please attach (or PM me) your Web App fcsx file (plus generated html) and I will look into it.

Also, once the html has been produced you can edit it as you wish. But obviously the changes will not transfer back tot he source Flowcode file. So yes, I think you can convert the file to a PHP file that is also serving the html.

Re: Embedded device controlled from the Web without ESP

Posted: Wed Apr 30, 2025 7:48 pm
by Nico595
Nice sound.

I think add responsive function. We can also define one html page per device.

I progress good, I will send you my Web App project this WE.

Thanks.