1

I am using google iot core with google cloud functions. When I try update iot device config remotely with modifyCloudToDeviceConfig() function, I get an update in the device after 5-10 sec.

I run in firestorm cloud function onUpdate(). To execute cloud function it takes less than 100ms, but to finish MQTT request devices.modifyCloudToDeviceConfig() it takes at least 5 sec. But when I use google iot core console to send a command to the device via 'Update Config', device will get this update immediately.

What can be the reason of slow modifyCloudToDeviceConfig() function execution?

4

1 回答 1

2

这不再devices.modifyCloudToDeviceConfig()是一个问题,在谷歌云功能中立即执行。

当我在 Firebase 云函数onUpdate()处理程序中执行时,执行modifyCloudToDeviceConfig()将需要 5 秒以上。

于 2018-07-06T15:55:57.260 回答