The MQTT Publish Action Component allows you to publish messages to topics within an MQTT PubSub system.

Here is an example of how to publish messages to a Google Cloud MQTT System:

Navigate to your Google Cloud console and create a project:

Navigate to Google Cloud Platform IoT Core

Enable the Google IoT Core API.

Create a Device Registry

Enter the name of your registry, select the region and add the topics (here events and states for example):

Click on “Add Device” in this screen:

And you will see:

Create a certificate that you can paste into the field by entering this command in your command line:

openssl req -x509 -newkey rsa:2048 -keyout rsa_private.pem -nodes -out rsa_cert.pem -subj "/CN=unused"

This will create a file rsa_private.pem and a file called rsa_cert.pem

Copy the contents of the rsa_cert.pem file into the window:

We’re now ready to take on messages from Gravio.

(The documentation how to retrieve MQTT messages in Gravio is currently still TBC and being written – please come back in a few days.)

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.