[英]iot-smart-home-cloud (gcp project) registered devices not appear in the fluter app and in Angular/web
我在 github 上打開了這個問題 10 天: https : //github.com/GoogleCloudPlatform/iot-smart-home-cloud/issues/20
我可以看到在 firestore 中注冊的設備(看下面的照片),但它們沒有出現在移動屏幕或 Angular/Web 應用程序中。 在后一種情況下,設備已在 GCP/Cloud Iot Core Api/PubSub 中正確注冊。
我已經使用下面的教程注冊了 1 個設備,它也沒有出現http://nilhcem.com/iot/cloud-iot-core-with-the-esp32-and-arduino
怎么解決?
盡管屏幕截圖中的錯誤消息提到了身份驗證問題,但真正的錯誤消息是“找不到設備”。
問題是代碼正在尋找由於注冊表名稱不匹配而不存在的特定注冊表設備。
作為參考, 快速入門的第3步中提到了firebase中iot設置的配置:
將您的 Cloud IoT Core 項目信息添加為 Firebase 配置環境變量:
$ firebase functions:config:set \\ cloudiot.region=$REGION \\ cloudiot.registry=$REGISTRY
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.