【问题标题】:Error running source run-gateway for Google IOT为 Google IOT 运行源运行网关时出错
【发布时间】:2020-02-29 12:51:45
【问题描述】:

我一直在尝试为这个问题寻求帮助,但没有取得太大的成功。我不断收到此错误。我正在关注本指南: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)

【问题讨论】:

    标签: google-cloud-iot


    【解决方案1】:

    我能够成功运行网关,但必须手动修改脚本。确保您已更新 run-gateway shell 脚本以指向您的 registry IDproject ID

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

    【讨论】:

      猜你喜欢
      • 2021-03-23
      • 1970-01-01
      • 2015-12-18
      • 2013-04-02
      • 1970-01-01
      • 2019-12-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多