Line 192: |
Line 192: |
| *'''Port''': 1883 | | *'''Port''': 1883 |
| *'''Keepalive''': 60 | | *'''Keepalive''': 60 |
− | *'''Topic''': rutx (input any preffered topic, make sure to subscribe on the same topic) | + | *'''Topic''': rutx (input any preferred topic, make sure to subscribe on the same topic) |
| | | |
| [[File:Data sender settings to node red with node red broker.png|border|1000px|class=tlt-border]] | | [[File:Data sender settings to node red with node red broker.png|border|1000px|class=tlt-border]] |
Line 215: |
Line 215: |
| | | |
| If you would like to use MQTT broker on the Teltonika device, change '''Server: Local''' to Server: '''RUT_Broker''' (which uses the IP 192.168.10.1). | | If you would like to use MQTT broker on the Teltonika device, change '''Server: Local''' to Server: '''RUT_Broker''' (which uses the IP 192.168.10.1). |
| + | |
| + | ==Bluetooth Data to Server via MQTT protocol== |
| + | |
| + | In this section, we are going to upload Bluetooth data to server on Node-RED. The configuration is going to be similar to Modbus data to server. First of all we are going to need a Bluetooth device which is paired to Teltonika device. For this example, we are using Teltonika EYE Beacon and we have it paired to the device: |
| + | |
| + | [[File:Paired beacon2 nodered.png|border|1000px|class=tlt-border]] |
| + | |
| + | ===Device configuration=== |
| + | ---- |
| + | Navigate to '''Services -> Data to server.''' Add new data sender and configure settings accordingly: |
| + | |
| + | *'''Enable''': on |
| + | *'''Name''': BT_data (input any preferred name) |
| + | *'''Data source''': Bluetooth data |
| + | *'''Protocol''': MQTT |
| + | *'''JSON format''': {"Data": "%b", "Hour": "%d"} - adjust this according to your needs |
| + | *'''Segment count''': All |
| + | *'''URL/Host/Connection string''': 192.168.10.139 (virtual machine address) |
| + | *'''Port''': 1883 |
| + | *'''Keepalive''': 60 |
| + | *'''Topic''': beacon (input any preferred topic, make sure to subscribe on the same topic) |