如何解决是否可以将MQTT经纪人mosquitto桥接到Cloud PubSub?
我有一个本地蚊帐经纪人,我想连接到Google Cloud pubsub队列。 我调查了Google Cloud IOT核心,但没有运气,我似乎无法连接到它
这是我的蚊子配置
#
# A full description of the configuration file is at
# /usr/share/doc/mosquitto/examples/mosquitto.conf.example
pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
# Goolge IoT Core Configuration
connection bridge-to-gcp
address mqtt.googleapis.com:8883
bridge_attempt_unsubscribe false
bridge_certfile /Downloads/rsa_cert.pem
bridge_keyfile /Downloads/rsa_private.pem
bridge_cafile /Downloads/roots.pem
bridge_protocol_version mqttv311
bridge_insecure false
tls_version tlsv1.2
try_private true
start_type automatic
cleansession true
notifications false
local_clientid local-to-remote-gcp-bridge
remote_clientid projects/toolsense-dev/locations/europe-west1/registries/test-registry/devices/test-device
topic # both
是否可以将从边缘设备收到的所有消息转发到Google Cloud Pubsub?
解决方法
经过更深入的研究,没有虚拟或物理网关设备是不可能的。甚至可能是与运行代理的计算机在同一台计算机上运行的客户端代码。
但是该用例在AWS Iot中是可能的 https://wiki.seeedstudio.com/Arduino-AWS-IOT-Bridge/
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。