mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 08:56:11 +00:00
.
This commit is contained in:
2
ESP32-Rainmaker-Switch/.vscode/settings.json
vendored
2
ESP32-Rainmaker-Switch/.vscode/settings.json
vendored
@@ -12,7 +12,7 @@
|
||||
"idf.openOcdConfigs": [
|
||||
"board/esp32c3-bridge.cfg"
|
||||
],
|
||||
"idf.portWin": "COM33",
|
||||
"idf.portWin": "COM29",
|
||||
"idf.pythonBinPathWin": "c:\\Users\\alex\\.espressif\\tools\\python_env\\idf5.2_py3.11_env\\Scripts\\python.exe",
|
||||
"idf.toolsPathWin": "c:\\Users\\alex\\.espressif\\tools",
|
||||
"idf.gitPathWin": "c:\\Users\\alex\\.espressif\\tools\\tools\\idf-git\\2.39.2\\cmd\\git.exe",
|
||||
|
@@ -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 C3");
|
||||
esp_rmaker_node_t *node = esp_rmaker_node_init(&rainmaker_cfg, "ESP RainMaker Device", "Switch C3-2");
|
||||
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("Switch C3", ESP_RMAKER_DEVICE_SWITCH, NULL);
|
||||
switch_device = esp_rmaker_device_create("Switch C3-2", 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.
|
||||
@@ -214,7 +214,7 @@ void app_main()
|
||||
* user friendly custom name from the phone apps. All devices are recommended to have this
|
||||
* parameter.
|
||||
*/
|
||||
esp_rmaker_device_add_param(switch_device, esp_rmaker_name_param_create(ESP_RMAKER_DEF_NAME_PARAM, "Switch C3 Mini"));
|
||||
esp_rmaker_device_add_param(switch_device, esp_rmaker_name_param_create(ESP_RMAKER_DEF_NAME_PARAM, "Switch C3-2 Mini"));
|
||||
|
||||
/* Add the standard power parameter (type: esp.param.power), which adds a boolean param
|
||||
* with a toggle switch ui-type.
|
||||
|
Reference in New Issue
Block a user