错误 运行ning source 运行-Google IOT 的网关

Error running source run-gateway for Google IOT

我一直在尝试为这个问题寻求帮助,但没有太大的成功。我不断收到此错误。我遵循了这个指南:https://cloud.google.com/community/tutorials/cloud-iot-gateways-rpi 但我无法通过第 14 步。

source run-gateway

Creating JWT using RS256 from private key file rsa_private.pem
on_publish, userdata None, mid 1
Unable to find key 1
connect status False
on_connect Connection Refused: not authorised.
on_disconnect 5: The connection was refused.
connect status False
connect status False
connect status False
^CTraceback (most recent call last):
  File "./cloudiot_mqtt_gateway.py", line 356, in <module>
    main()
  File "./cloudiot_mqtt_gateway.py", line 284, in main
    time.sleep(1)

我能够成功获取网关 运行ning 但必须手动修改脚本。确保您已更新 运行-gateway shell 脚本以指向您的 registry ID项目编号.

如果任何参数不正确(例如设备、项目、区域),那么您的设备将与设备桥断开连接。