Can I install mosquitto_pub on RUT241

I have a lua script that’s working so far, it publish data to a remote server.
For now I got it working with CURL to send the data, but I would like to make it work mosquitt_pub so I can use MQTT.
Is there a package for the RUT241?

Hello,

There is a mosquitto-client-ssl package available to download from the 3rd party opkg repository with the command provided on the topic here:

That should allow executing mosquitto-related subscribe and publish commands.

Best regards,

Thank you Martynas,
That’s working, now I can send data with mosquitto_pub to a remote server with a lua script.
Is it reliable to use 3rd party packages or are there cons to use them?

Hello,

Thank you for the update.

Is it reliable to use 3rd party packages or are there cons to use them?

It depends, there are some 3rd-party openwrt packages that are fully compatible with RutOS (like mosquitto client) and on the other hand, there are also incompatible ones or ones that could work improperly. Overall, it’s up to your preference if you prefer to use them or not.

Best regards,

How can I found out if a package is fully compatible?

Hello,

You’d need to install and test the package to confirm full compatibility. Some packages have already been discussed here on the forum, so you can search existing threads or check other openwrt related forums for insights.

Thanks again for you’re help!

1 Like