Line 58: |
Line 58: |
| * MODBUS | | * MODBUS |
| * Router monitoring | | * Router monitoring |
| + | |
| + | === Publishing Bluetooth/Wifi scanner/Modbus data === |
| + | Before sending data from those sources to the MQTT Broker, the router needs to know what data from each source to send: |
| + | |
| + | * For Bluetooth, you have to pair the device you want to get data from, first |
| + | * For Wifi scanner data, you have to enable the wifi scanner functionality first |
| + | * For MODBUS data, you need to set what data from what MODBUS slave the router has to get |
| + | |
| + | If you need any help on setting up each functionality, the Teltonika Wiki has topics for each one of them |
| + | |
| + | Then, you will use the "Data to server" functionality, under "Services" menu. |
| + | [[File:Image451.png|none|thumb|470x470px]] |
| + | Click on the "Add" button on the right side of the page, you will see the following menu. |
| + | [[File:Img4587.png|none|thumb|782x782px]] |
| + | The main fields you have to fill up are pretty straight forward, just pay more attention for the fields needed for AWS MQTT Broker connection: |
| + | |
| + | '''"URL / Host / Connection string"''' : There you will paste your AWS Endpoint |
| + | |
| + | '''"Port"''' : 8883 |
| + | |
| + | '''"Topic"''' : Any name you want, just write it down so you can subscribe this topic later |
| + | |
| + | '''"Use TLS"''' : On |
| + | |
| + | '''"TLS type"''' : "Certificate based" |
| + | |
| + | '''"CA File, Client certificate, Private key"''' : There you will select the files you've downloaded from AWS IoT HuB |
| + | [[File:Config421.png|none|thumb|749x749px]] |
| + | After setting up all, you should have something similar to the screen below. |
| + | |
| + | = Example: Publishing RUT Modbus data over MQTT = |
| + | |
| + | === What data do you want to publish? === |
| + | Depending on your RUT model, you can have the following options of data sources to send over MQTT: |
| + | |
| + | * Bluetooth |