Line 112: |
Line 112: |
| Enabling the MODBUS Slave option on the router allows it to answer any requests coming from a MODBUS Master. To do that, go to the router configuration page->Services->MODBUS-> MODBUS TCP Slave. Then clock the "Enable" slider and save. | | Enabling the MODBUS Slave option on the router allows it to answer any requests coming from a MODBUS Master. To do that, go to the router configuration page->Services->MODBUS-> MODBUS TCP Slave. Then clock the "Enable" slider and save. |
| | | |
− | [[File:Imagehowknows.png]] | + | [[File:Imagehowknows.png|border|class=tlt-border]] |
| | | |
| === Enabling MODBUS TCP Master === | | === Enabling MODBUS TCP Master === |
| Enabling the MODBUS Master option on the router allows it to make specific requests to any slave in the MODBUS network. To do that, go to the router configuration page->Services->MODBUS-> MODBUS TCP Master. Click on the "Add" button, and do the following configuration on the page: | | Enabling the MODBUS Master option on the router allows it to make specific requests to any slave in the MODBUS network. To do that, go to the router configuration page->Services->MODBUS-> MODBUS TCP Master. Click on the "Add" button, and do the following configuration on the page: |
| | | |
− | [[File:Imagedsadadssa.png]] | + | [[File:Imagedsadadssa.png|border|class=tlt-border]] |
| | | |
| '''"Name"''' : Any name | | '''"Name"''' : Any name |
Line 133: |
Line 133: |
| Then scroll down the page a bit, on the "Add new request" section, give any name to your request and click on the "Add" button. Then do the following configuration | | Then scroll down the page a bit, on the "Add new request" section, give any name to your request and click on the "Add" button. Then do the following configuration |
| | | |
− | [[File:Imagegpdddd.png]] | + | [[File:Imagegpdddd.png|border|class=tlt-border]] |
| | | |
| '''"Data type"''' : Data type of the data you are going to receive, in this case, the router reports its device name using ASCII | | '''"Data type"''' : Data type of the data you are going to receive, in this case, the router reports its device name using ASCII |
Line 148: |
Line 148: |
| Go to the router configuration page->Services->Data to server. Click on the "Add" button, and the configuration is basically the same as described on the "Publishing Bluetooth/Wifi scanner/Modbus data" section of this article, just change the data source to "MODBUS data" and format the data as you wish. You should have something similar to this. | | Go to the router configuration page->Services->Data to server. Click on the "Add" button, and the configuration is basically the same as described on the "Publishing Bluetooth/Wifi scanner/Modbus data" section of this article, just change the data source to "MODBUS data" and format the data as you wish. You should have something similar to this. |
| | | |
− | [[File:Imagesdasdsada.png]] | + | [[File:Imagesdasdsada.png|border|class=tlt-border]] |
| | | |
| === Checking if it works === | | === Checking if it works === |
| Then, you can use the AWS MQTT test client to check if your setup works, if everything was setup correctly, you should see something like this. | | Then, you can use the AWS MQTT test client to check if your setup works, if everything was setup correctly, you should see something like this. |
| | | |
− | [[File:Imagefdsfdsfsd.png]] | + | [[File:Imagefdsfdsfsd.png|border|class=tlt-border]] |