User Tools

Site Tools


config:remotecontrol:emberplus

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
config:remotecontrol:emberplus [2016/09/06 12:56] – [Scripting] twconfig:remotecontrol:emberplus [2019/07/09 16:18] – external edit 127.0.0.1
Line 66: Line 66:
  
 Example: Example:
- +
   EmberPlusConsumerRemote(0).SetParameterValue('/Device/SomeLabel', 'foobar');   EmberPlusConsumerRemote(0).SetParameterValue('/Device/SomeLabel', 'foobar');
  
 Note that the value is always given as a string, mAirList will automatically convert it to the correct type. Use '''true''' and '''false''' for boolean parameters. Note that the value is always given as a string, mAirList will automatically convert it to the correct type. Use '''true''' and '''false''' for boolean parameters.
  
-Important notice: mAirList fetches the entire parameter tree from the provider. This is an asynchronous operation, and depending on the size of the tree, it can take a few seconds until the entire tree is known to mAirList. If you try to set a parameter that has not been fetched yet (e.g. in an ''OnLoad'' procedure that is executed during startup), you wil see an //Unknown parameter// error message. In this case, try to defer the call for a bit, using a 'sleep' operation.+Important notice: mAirList fetches the entire parameter tree from the provider. This is an asynchronous operation, and depending on the size of the tree, it can take a few seconds until the entire tree is known to mAirList. If you try to set a parameter that has not been fetched yet (e.g. in an ''OnLoad'' procedure that is executed during startup), you wil see an //Unknown parameter// error message. In this case, try to defer the call for a bit, using a ''sleep(...)'' operation.
config/remotecontrol/emberplus.txt · Last modified: 2020/02/27 10:25 by tw

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki