Name: cloud-pubsub-mqtt-proxy
Owner: Google Cloud Platform
Description: A proxy between Cloud Pub/Sub and MQTT
Created: 2015-08-19 23:30:34.0
Updated: 2018-01-22 18:46:16.0
Pushed: 2018-01-08 23:26:17.0
Homepage: null
Size: 253
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
DEPRECATED
Google provides MQTT bridge as part of our Cloud IoT offerings. We recommend that you consider using the MQTT bridge.
The MQTT Cloud Pub/Sub proxy provides a solution for utilizing Cloud Pub/Sub with IoT client devices through an MQTT interface.
MQTT is a lightweight protocol commonly used among IoT devices. The source depends on the Moquette broker and the Eclipse Paho MQTT Client library.
The current version of the proxy utilizes Google Cloud Pub/Sub as the backend Pub/Sub service. If you're planning on running multiple instances of the proxy for scalability, you must avoid running multiple instances on the same host.
If you will be using Google Cloud Pub/Sub, you must set the GCLOUD_PUBSUB_PROJECT_ID environment variable equal to your project ID.
Clone the repository and go into the source. Execute mvn clean package
. The jar files will be
located in the target
directory.
After going into the target
directory execute the following:
java -cp mqtt-cloud-pubsub-proxy-1.0-SNAPSHOT-jar-with-dependencies.jar
com.google.cloud.pubsub.proxy.moquette.Server