问题描述
我有一个本地蚊帐经纪人,我想连接到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/