mirror of
https://github.com/espressif/esp-rainmaker.git
synced 2026-01-19 16:03:45 +00:00
A callback of type esp_rmaker_device_bulk_write_cb_t can be registered using esp_rmaker_device_add_bulk_cb() to handle multiple param writes in a single callback. This is especially useful for devices like lightbulb, wherein a scene/schedule may have a combination of brightness, hue, saturation, all of which should change together. Additionally to optimise parameter reporting, internal logic has been changed such that if the callbacks use esp_rmaker_param_update() instead of esp_rmaker_param_update_and_report(), all updated parameters for a device or service will get reported together instead of one parameter in one message.