For a working example, Google Cloud Platform (GCP) will be used as the MQTT receiver and ingestor into their cloud. Most MQTT cloud services follow a similar model, so this framework can be used as a reference. We will use open source tools to start an MQTT client and a simple Python example to publish a hello world string to a topics branch. Preliminary steps are needed to start using GCP. Google accounts and payment systems need to be secured before proceeding. Please refer to these instructions regarding getting started with Google IoT Core https://cloud.google.com/iot/docs/how-tos/getting-started.
Proceed within GCP to create a device, enable the Google API, create a topics branch, and add a member to the pub/sub ...