From OpenSCADAWiki
Jump to: navigation, search

rfcomm bind 0 98:D3:31:F8:52:29 # 0 here for binding to /dev/rfcomm0 </syntaxhighlight>

2. Create and start a logical controller object or use any presented one with the needed scheduling properties.
3. Create a logical parameter object and select this template for it, one for each the devices. Enable the parameter.
4. Into the tab "Template configuration" of the logical parameter object you need to set:
  • Transport — to the address of the automatically created transport with its parameters after ":", according to the function SYS.Transport.outAt() address format, where the device address corresponds to the command rfcomm bind 0 in item 1.
  • Device to bind — here you may set the Bluetooth address of the device as "98:D3:31:F8:52:29" to call the rfcomm bind {N} command when starting the template, where N is respectively taken from the address of the previous item.
At.png The rfcomm command is normally not available to be called by a non-privileged user, and if you want to call it by such a user, you must set a corresponding sign for it as chmod u+s /usr/bin/rfcomm from the super user.
5. RESULT: The logical parameter object will perform gather data of and trace to modify of the writable properties.