RPC对MQTT的调用
嗨,我想通过向MQTT主题(${device.id}/rpc)发出发布消息(RPC调用)来发布遥测事件。
参考资料: RPC over MQTT(ttps://mongoose-os.com/docs/mongoose-os/api/rpc/rpc-mqtt.md) 发布遥测事件,Google IoT核心
我使用下面的命令在MQTT上调用RPC
mos --port mqtts://mqtt.2030.ltsapis.goog:8883/projects/PROJECT_NAME/locations/us-central1/registries/iot-registry/devices/esp8266_C7E6AA --cert-file gcp-esp8266_C7E6AA.pub.pem --key-file gcp-esp8266_C7E6AA.key.pem call Sys.GetInfo
但我的反应很低
$ mos --port mqtts://mqtt.2030.ltsapis.goog:8883/projects/PROJECT_NAME/locations/us-central1/registries/iot-registry/devices/esp8266_C7E6AA --cert-file gcp-esp8266_C7E6AA.pub.pem --key-file gcp-esp8266_C7E6AA.key.pem call Sys.GetInfo
Unknown command
Command completed.上面的命令是正确的还是我做错了什么?
发布于 2021-06-24 11:07:08
https://stackoverflow.com/questions/63698383
复制相似问题