How to send messages to telematics hub from my custom solution via MQTT?

Using MQTT to put the data into your flespi channel.

MQTT usage assumes that you have a good technical background. This may be written on first demand. However, we have everything explained here:

See also
Using plugins to add cached telemetry values in place of missing device message parameters.
An API method to change the owner of the registered flespi device.