control4 / docs-driverworks

Home Page for the Driverworks SDK
Other
41 stars 17 forks source link

Send Data from Lua Script to UI in WebView Driver #23

Closed mojtabavi closed 2 years ago

mojtabavi commented 2 years ago

How Can I send Data from Lua Script to UI in WebView Driver? I read the document and checked the JS Demo Driver code but did not understand how to do it

EldonRGreenwood commented 2 years ago

@mojtabavi for the HTML/JS application to receive information from the Lua driver, you need to do the following:

Variable Method:

DataToUI method:

A sample application showing these interactions is available at https://github.com/control4/docs-driverworks/tree/master/JS%20Demo%20Driver

I hope that this information is helpful, -Eldon