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
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
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.)