// handler for update_config action
int handle_update_config(bytebeam_client_t *bytebeam_client, char *args, char *action_id)
{
// log the received arguments and action id to serial for the refrence
ESP_LOGI(TAG, "UpdateConfig Action Received !");
ESP_LOGI(TAG, "<--- args : %s, actionId : %s --->\n", args, actionId);
//
// parse the received json here
//
//
// update the actual device configurations here
//
//
// publish action status here
//
return 0;
}
// add the handler for update config action
bytebeam_add_action_handler(&bytebeam_client, handle_update_config, "update_config");