User Tools

Site Tools


uphp:functions:mb_add_dev

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
uphp:functions:mb_add_dev [2018/09/09 10:45]
jeff
uphp:functions:mb_add_dev [2021/09/13 05:57] (current)
Line 19: Line 19:
 <span style="color:blue">$poll_interval<span style="color:black">, <span style="color:blue">$poll_interval<span style="color:black">,
 <span style="color:green">int <span style="color:green">int
-<span style="color:blue">$status+<span style="color:blue">$status<span style="color:black">, 
 +<span style="color:green">int 
 +<span style="color:blue">$bus
 <span style="color:black">) <span style="color:black">)
 </html></well> </html></well>
Line 34: Line 36:
  
 <html><b><span style="color:blue">$status<span style="color:black"></b></html>:  Current device status <html><b><span style="color:blue">$status<span style="color:black"></b></html>:  Current device status
 +
 +<html><b><span style="color:blue">$bus<span style="color:black"></b></html>:  Optional bus ID.  See table below.
  
 ====Return Values==== ====Return Values====
  
 <html><b><span style="color:green">Integer<span style="color:black"></b></html>:  0=success, otherwise there was an error adding the device <html><b><span style="color:green">Integer<span style="color:black"></b></html>:  0=success, otherwise there was an error adding the device
 +
 +====Bus====
 +The bus number indicates which subsystem handles the modbus processing in Wattmon.
 +^ Bus   ^ Description             ^
 +| 0     | RS-485 Port (Default)   |
 +| 1     | Virtual Device          |
 +| 2-11  | Modbus TCP Channel 0-9  |
  
 ====See Also==== ====See Also====
  
-[[mb_delete_device()]] - Delete a device from the list of active devices+[[mb_delete_dev()]] - Delete a device from the list of active devices
  
 [[mb_get_dev_by_id()]] - Return modbus device details by ID [[mb_get_dev_by_id()]] - Return modbus device details by ID
uphp/functions/mb_add_dev.1536489916.txt.gz · Last modified: 2021/09/13 05:56 (external edit)