I am trying to configure my Teltonika TRB140 to utilize the Data to Server functionality to redistribute data collected using the Modbus TCP Client to different MQTT topics on the same MQTT broker.
When trying to configure the 11th collection I got an error telling me there is a limit on 10 collections, is this a hard limit or can this be circumvented?
I want to create a total of 20-25 collections to send the bundled data to different MQTT topics.
My ideal situation would be to configure one connection to the MQTT broker (one Data to Server collection) and then publish the data collected by the TCP Client to the topic it needs to go to but I could not find a way of doing this so I created the different collections to publish to separate topics.
What is the best practice in this use case, or is this something that is just not possible on the TRB140 or Teltonika systems in general?
To increase the “Data to server” collection limit, please try to use the following commands:
uci set data_sender.settings.max_collections=25
uci commit
/etc/init.d/data_sender restart
However, to note, the limit for these collections was updated to 20 as of firmware version 07.23, meaning the command is not necessary if the firmware version is updated.
If the amount of collections is increased beyond this point, the performance of the device could be impacted; therefore, please proceed at your own risk - and if such were to happen, you can lower it by running the command above and changing the “25” number to a different one.