Android Question Receive data from MQTT broker into MQTT Android Client

Hey guys, I am new to B4x. I have been watching videos recently and doing beginner programs but my main objective is to use B4a to create an app that receives data from MQTT broker The data later needs to recorded over time and represented on a graph. I'm looking for a template program that might help me establish connection between my app and the broker. Any help in this direction is highly appreciated.

Thank you very much!