74 views
in System Integration by
Hello ~

I have been using Embedded Wizard with STM32MP1 MPU.

So far, we have used the Linux OpenGL ES 2.0 platform packages.

This time, we are considering using the WebGL Platform package for Web application of our product.

I've already test a simple GUI in a web browser using the WebGL Demo Platform package.

But I don't know well how to control the hardware when the user presses the button.

Is there an example or document?

Can I create a C application to control the hardware and use websocket to communicate between the C application and JavaScript?

Thanks

1 Answer

0 votes
by

Hello hantas,

But I don't know well how to control the hardware when the user presses the button.

Generally, an application running in the Web browser has no or less possibilities to access the underlying hardware.

From Embedded Wizard point of view, the integration limits to the usage of JavaScript code fragments. For example, you can implement JavaScript code to execute when user pressed a button. What the JavaScript code does (e.g. communicate with a Web server) is up to you. That assumes some understanding of JavaScript and web development. The communication between the Web application and outer systems is thus more related to the Web development and not to Embedded Wizard.

How JavaScript code fragments are integrated in Embedded Wizard is explained in the chapter Integrating with the device. In the simplest case you enclose a fragment of JavaScript code inside a native statement.

Best regards

Paul Banach

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...