light_device = esp_rmaker_lightbulb_device_create("Light", NULL, true); esp_rmaker_device_add_cb(light_device, write_cb, NULL); esp_rmaker_device_add_param(light_device, esp_rmaker_brightness_param_create("brightness", 100));