Hello community, hello @developer
could someone give me an example on how to get a dynamic value from the device to the frontend?
As far as I understood, I could call the device methods via
@device.rest.doSomeStuff
but how could I access the return value in the frontend?
For example the doSomeStuff method looks like that:
doSomeStuff: ->
return Math.random
Now I want to replace a divs content with the given value. How needs the code to look like in the frontend CS file?
$("#placeholder").html(returnValue)
Thx in advance