I have shated our mqtt publisher usage information in your DM , you can build using this information or you can either use third party packages from opkg such as misquitto-client
For installing the packages go to CLI:
Password : same as you set
now run following commands:
opkg install mosquitto-client
Now its upto you how you will approach rs232 information.