我正在尝试谷歌物联网和谷歌PubSub。我正在将MQTT消息从设备发送到我所订阅的pubsub队列(我将其称为“服务器”)。在google云控制台中,我更新了设备设置,并在设备中获得了设置消息。
google tutorial中的一切都运行得很好,但我想知道是否有可能以另一种方式设置消息传递:即“服务器”发送消息到设备使用MQTT订阅的pubsub队列。
末尾的模式让我认为只有"config“mqtt队列(/devices/XXXX/config)可以这样使用。
我需要的是从“服务器”到“设备”的一对一通信,恐怕唯一的方法就是使用配置
我有一个基于python 3.7的云函数。我有一个从纪元开始的秒值。我可以为文档添加字符串、整数等一系列条目,但不能添加时间戳。 下面是一个简单的代码片段。 db = firestore.Client(project=project_id)
# the event dictionary already has some values in it. Add a timestamp.
#
# This is a reference to javascript api. Oddly enough this page does not have
# python listed.
# http