Merge branch 'task/cmd-attr' into 'master'

cmd-resp: Add an attribute to indicate if cmd-resp is enabled

See merge request app-frameworks/esp-rainmaker!386
This commit is contained in:
Piyush Shah
2023-08-18 20:07:32 +08:00

View File

@@ -398,6 +398,7 @@ static void esp_rmaker_task(void *data)
ESP_LOGE(TAG, "Failed to enable Command - Response module. Aborting!!!");
goto rmaker_end;
}
esp_rmaker_node_add_attribute(esp_rmaker_get_node(), "cmd-resp", "1");
#else
ESP_LOGW(TAG, "Command-Response Module not enabled. Set CONFIG_ESP_RMAKER_CMD_RESP_ENABLE=y to use it.");
#endif /* !CONFIG_ESP_RMAKER_CMD_RESP_ENABLE */