MQTT and Firebase Connection with App Inventor

Then consider this:

or this: