This commit is contained in:
2024-07-17 15:41:10 -04:00
parent f88c9a325a
commit 711dc5a9ae
1498 changed files with 416 additions and 242904 deletions

View File

@@ -191,7 +191,7 @@ void app_main()
.enable_time_sync = false,
};
// Define device name and description as they should appear in logs
esp_rmaker_node_t *node = esp_rmaker_node_init(&rainmaker_cfg, "ESP RainMaker Device", "Switch");
esp_rmaker_node_t *node = esp_rmaker_node_init(&rainmaker_cfg, "ESP RainMaker Device", "Switch C3");
if (!node) {
ESP_LOGE(TAG, "Could not initialise node. Aborting!!!");
vTaskDelay(5000/portTICK_PERIOD_MS);
@@ -203,7 +203,7 @@ void app_main()
* avoid writing code for adding the name and power parameters.
*/
// Define device name and description as they should appear in RainMaker UI app
switch_device = esp_rmaker_device_create("Foxie Switch", ESP_RMAKER_DEVICE_SWITCH, NULL);
switch_device = esp_rmaker_device_create("Switch C3", ESP_RMAKER_DEVICE_SWITCH, NULL);
/* Add the write callback for the device. We aren't registering any read callback yet as
* it is for future use.