Jump to content

Monitoring via Modbus: Difference between revisions

No edit summary
Line 174: Line 174:
===WAN IP address===
===WAN IP address===


Lets examine a different
Lets examine a different, more complex example by issuing a request for the router's '''WAN IP address'''. If you look at the '''[[Monitoring_via_Modbus#List_of_parameters|table]]''' above, you will see that the WAN IP address value is contained within the 139th and 140th registers. Therefore, we should specify the 139th address and read 2 registers from that address:
 
$ modbus read -w -p 12345 192.168.1.1 %MW139 2
 
[[File:Configuration examples modbus wan ip.png]]