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?