mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-07 22:36:12 +00:00
.
This commit is contained in:
@@ -1 +1 @@
|
||||
d43da63f71b258eed40d160e1447183f C:/Users/alex/github/ESP-Nodes/ESP32-IDF_ESPNOW-Transmitter/build/espnow_transmitter.bin
|
||||
8b769b9c932f34d506ae92abd9437ead C:/Users/alex/github/ESP-Nodes/ESP32-IDF_ESPNOW-Transmitter/build/espnow_transmitter.bin
|
||||
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -1 +1 @@
|
||||
0e0c7de08fa4edf797de9539105527cb10aa9c04
|
||||
35d4a1a142b3dad9879c9566f31a3f4d72cae322
|
||||
|
@@ -115,3 +115,11 @@
|
||||
60 308 7756429343564463 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_ESPNOW-Transmitter/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size e2b83983896ccca6
|
||||
61 295 7756431580177233 esp-idf/esptool_py/CMakeFiles/bootloader_check_size e2b83983896ccca6
|
||||
61 295 7756431580177233 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_ESPNOW-Transmitter/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size e2b83983896ccca6
|
||||
45 370 7756433189275326 esp-idf/esptool_py/CMakeFiles/bootloader_check_size e2b83983896ccca6
|
||||
45 370 7756433189275326 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_ESPNOW-Transmitter/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size e2b83983896ccca6
|
||||
43 255 7756434315252459 esp-idf/esptool_py/CMakeFiles/bootloader_check_size e2b83983896ccca6
|
||||
43 255 7756434315252459 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_ESPNOW-Transmitter/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size e2b83983896ccca6
|
||||
47 241 7756436125416584 esp-idf/esptool_py/CMakeFiles/bootloader_check_size e2b83983896ccca6
|
||||
47 241 7756436125416584 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_ESPNOW-Transmitter/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size e2b83983896ccca6
|
||||
51 583 7756438833957144 esp-idf/esptool_py/CMakeFiles/bootloader_check_size e2b83983896ccca6
|
||||
51 583 7756438833957144 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_ESPNOW-Transmitter/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size e2b83983896ccca6
|
||||
|
@@ -3167,7 +3167,7 @@ build esp-idf/partition_table/CMakeFiles/partition_table-flash | ${cmake_ninja_w
|
||||
build cmake_object_order_depends_target___idf_esp_app_format: phony || cmake_object_order_depends_target___idf_esp_bootloader_format
|
||||
|
||||
build esp-idf/esp_app_format/CMakeFiles/__idf_esp_app_format.dir/esp_app_desc.c.obj: C_COMPILER____idf_esp_app_format_unscanned_ C$:/Users/alex/esp/v5.4/esp-idf/components/esp_app_format/esp_app_desc.c || cmake_object_order_depends_target___idf_esp_app_format
|
||||
DEFINES = -DESP_PLATFORM -DIDF_VER=\"v5.4\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -D PROJECT_NAME=\"espnow_transmitter\" -DPROJECT_VER=\"ESP32-Node_Switch-v2.7-8910-g0e\"
|
||||
DEFINES = -DESP_PLATFORM -DIDF_VER=\"v5.4\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -D PROJECT_NAME=\"espnow_transmitter\" -DPROJECT_VER=\"ESP32-Node_Switch-v2.7-8911-g35\"
|
||||
DEP_FILE = esp-idf\esp_app_format\CMakeFiles\__idf_esp_app_format.dir\esp_app_desc.c.obj.d
|
||||
FLAGS = -march=rv32imc_zicsr_zifencei -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Og -fno-shrink-wrap -fmacro-prefix-map=C:/Users/alex/github/ESP-Nodes/ESP32-IDF_ESPNOW-Transmitter=. -fmacro-prefix-map=C:/Users/alex/esp/v5.4/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration
|
||||
INCLUDES = -IC:/Users/alex/github/ESP-Nodes/ESP32-IDF_ESPNOW-Transmitter/build/config -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_app_format/include -IC:/Users/alex/esp/v5.4/esp-idf/components/newlib/platform_include -IC:/Users/alex/esp/v5.4/esp-idf/components/freertos/config/include -IC:/Users/alex/esp/v5.4/esp-idf/components/freertos/config/include/freertos -IC:/Users/alex/esp/v5.4/esp-idf/components/freertos/config/riscv/include -IC:/Users/alex/esp/v5.4/esp-idf/components/freertos/FreeRTOS-Kernel/include -IC:/Users/alex/esp/v5.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -IC:/Users/alex/esp/v5.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -IC:/Users/alex/esp/v5.4/esp-idf/components/freertos/esp_additions/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/include/soc -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/include/soc/esp32c3 -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/dma/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/ldo/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/debug_probe/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/port/esp32c3/. -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/port/esp32c3/include -IC:/Users/alex/esp/v5.4/esp-idf/components/heap/include -IC:/Users/alex/esp/v5.4/esp-idf/components/heap/tlsf -IC:/Users/alex/esp/v5.4/esp-idf/components/log/include -IC:/Users/alex/esp/v5.4/esp-idf/components/soc/include -IC:/Users/alex/esp/v5.4/esp-idf/components/soc/esp32c3 -IC:/Users/alex/esp/v5.4/esp-idf/components/soc/esp32c3/include -IC:/Users/alex/esp/v5.4/esp-idf/components/soc/esp32c3/register -IC:/Users/alex/esp/v5.4/esp-idf/components/hal/platform_port/include -IC:/Users/alex/esp/v5.4/esp-idf/components/hal/esp32c3/include -IC:/Users/alex/esp/v5.4/esp-idf/components/hal/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_rom/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_rom/esp32c3/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_rom/esp32c3/include/esp32c3 -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_rom/esp32c3 -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_common/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_system/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_system/port/soc -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_system/port/include/riscv -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_system/port/include/private -IC:/Users/alex/esp/v5.4/esp-idf/components/riscv/include -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/include -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/include/apps -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/include/apps/sntp -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/lwip/src/include -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/port/include -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/port/freertos/include -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/port/esp32xx/include -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/port/esp32xx/include/arch -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/port/esp32xx/include/sys
|
||||
|
@@ -907,7 +907,7 @@
|
||||
},
|
||||
{
|
||||
"directory": "C:/Users/alex/github/ESP-Nodes/ESP32-IDF_ESPNOW-Transmitter/build",
|
||||
"command": "C:\\Users\\alex\\esp\\tools\\riscv32-esp-elf\\esp-14.2.0_20241119\\riscv32-esp-elf\\bin\\riscv32-esp-elf-gcc.exe -DESP_PLATFORM -DIDF_VER=\\\"v5.4\\\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -D PROJECT_NAME=\\\"espnow_transmitter\\\" -DPROJECT_VER=\\\"ESP32-Node_Switch-v2.7-8910-g0e\\\" -IC:/Users/alex/github/ESP-Nodes/ESP32-IDF_ESPNOW-Transmitter/build/config -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_app_format/include -IC:/Users/alex/esp/v5.4/esp-idf/components/newlib/platform_include -IC:/Users/alex/esp/v5.4/esp-idf/components/freertos/config/include -IC:/Users/alex/esp/v5.4/esp-idf/components/freertos/config/include/freertos -IC:/Users/alex/esp/v5.4/esp-idf/components/freertos/config/riscv/include -IC:/Users/alex/esp/v5.4/esp-idf/components/freertos/FreeRTOS-Kernel/include -IC:/Users/alex/esp/v5.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -IC:/Users/alex/esp/v5.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -IC:/Users/alex/esp/v5.4/esp-idf/components/freertos/esp_additions/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/include/soc -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/include/soc/esp32c3 -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/dma/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/ldo/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/debug_probe/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/port/esp32c3/. -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/port/esp32c3/include -IC:/Users/alex/esp/v5.4/esp-idf/components/heap/include -IC:/Users/alex/esp/v5.4/esp-idf/components/heap/tlsf -IC:/Users/alex/esp/v5.4/esp-idf/components/log/include -IC:/Users/alex/esp/v5.4/esp-idf/components/soc/include -IC:/Users/alex/esp/v5.4/esp-idf/components/soc/esp32c3 -IC:/Users/alex/esp/v5.4/esp-idf/components/soc/esp32c3/include -IC:/Users/alex/esp/v5.4/esp-idf/components/soc/esp32c3/register -IC:/Users/alex/esp/v5.4/esp-idf/components/hal/platform_port/include -IC:/Users/alex/esp/v5.4/esp-idf/components/hal/esp32c3/include -IC:/Users/alex/esp/v5.4/esp-idf/components/hal/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_rom/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_rom/esp32c3/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_rom/esp32c3/include/esp32c3 -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_rom/esp32c3 -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_common/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_system/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_system/port/soc -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_system/port/include/riscv -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_system/port/include/private -IC:/Users/alex/esp/v5.4/esp-idf/components/riscv/include -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/include -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/include/apps -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/include/apps/sntp -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/lwip/src/include -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/port/include -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/port/freertos/include -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/port/esp32xx/include -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/port/esp32xx/include/arch -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/port/esp32xx/include/sys -march=rv32imc_zicsr_zifencei -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Og -fno-shrink-wrap -fmacro-prefix-map=C:/Users/alex/github/ESP-Nodes/ESP32-IDF_ESPNOW-Transmitter=. -fmacro-prefix-map=C:/Users/alex/esp/v5.4/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -o esp-idf\\esp_app_format\\CMakeFiles\\__idf_esp_app_format.dir\\esp_app_desc.c.obj -c C:\\Users\\alex\\esp\\v5.4\\esp-idf\\components\\esp_app_format\\esp_app_desc.c",
|
||||
"command": "C:\\Users\\alex\\esp\\tools\\riscv32-esp-elf\\esp-14.2.0_20241119\\riscv32-esp-elf\\bin\\riscv32-esp-elf-gcc.exe -DESP_PLATFORM -DIDF_VER=\\\"v5.4\\\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -D PROJECT_NAME=\\\"espnow_transmitter\\\" -DPROJECT_VER=\\\"ESP32-Node_Switch-v2.7-8911-g35\\\" -IC:/Users/alex/github/ESP-Nodes/ESP32-IDF_ESPNOW-Transmitter/build/config -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_app_format/include -IC:/Users/alex/esp/v5.4/esp-idf/components/newlib/platform_include -IC:/Users/alex/esp/v5.4/esp-idf/components/freertos/config/include -IC:/Users/alex/esp/v5.4/esp-idf/components/freertos/config/include/freertos -IC:/Users/alex/esp/v5.4/esp-idf/components/freertos/config/riscv/include -IC:/Users/alex/esp/v5.4/esp-idf/components/freertos/FreeRTOS-Kernel/include -IC:/Users/alex/esp/v5.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -IC:/Users/alex/esp/v5.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -IC:/Users/alex/esp/v5.4/esp-idf/components/freertos/esp_additions/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/include/soc -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/include/soc/esp32c3 -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/dma/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/ldo/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/debug_probe/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/port/esp32c3/. -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_hw_support/port/esp32c3/include -IC:/Users/alex/esp/v5.4/esp-idf/components/heap/include -IC:/Users/alex/esp/v5.4/esp-idf/components/heap/tlsf -IC:/Users/alex/esp/v5.4/esp-idf/components/log/include -IC:/Users/alex/esp/v5.4/esp-idf/components/soc/include -IC:/Users/alex/esp/v5.4/esp-idf/components/soc/esp32c3 -IC:/Users/alex/esp/v5.4/esp-idf/components/soc/esp32c3/include -IC:/Users/alex/esp/v5.4/esp-idf/components/soc/esp32c3/register -IC:/Users/alex/esp/v5.4/esp-idf/components/hal/platform_port/include -IC:/Users/alex/esp/v5.4/esp-idf/components/hal/esp32c3/include -IC:/Users/alex/esp/v5.4/esp-idf/components/hal/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_rom/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_rom/esp32c3/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_rom/esp32c3/include/esp32c3 -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_rom/esp32c3 -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_common/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_system/include -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_system/port/soc -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_system/port/include/riscv -IC:/Users/alex/esp/v5.4/esp-idf/components/esp_system/port/include/private -IC:/Users/alex/esp/v5.4/esp-idf/components/riscv/include -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/include -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/include/apps -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/include/apps/sntp -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/lwip/src/include -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/port/include -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/port/freertos/include -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/port/esp32xx/include -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/port/esp32xx/include/arch -IC:/Users/alex/esp/v5.4/esp-idf/components/lwip/port/esp32xx/include/sys -march=rv32imc_zicsr_zifencei -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Og -fno-shrink-wrap -fmacro-prefix-map=C:/Users/alex/github/ESP-Nodes/ESP32-IDF_ESPNOW-Transmitter=. -fmacro-prefix-map=C:/Users/alex/esp/v5.4/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -o esp-idf\\esp_app_format\\CMakeFiles\\__idf_esp_app_format.dir\\esp_app_desc.c.obj -c C:\\Users\\alex\\esp\\v5.4\\esp-idf\\components\\esp_app_format\\esp_app_desc.c",
|
||||
"file": "C:\\Users\\alex\\esp\\v5.4\\esp-idf\\components\\esp_app_format\\esp_app_desc.c",
|
||||
"output": "esp-idf\\esp_app_format\\CMakeFiles\\__idf_esp_app_format.dir\\esp_app_desc.c.obj"
|
||||
},
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": "1.1",
|
||||
"project_name": "espnow_transmitter",
|
||||
"project_version": "ESP32-Node_Switch-v2.7-8910-g0e0c7de08-dirty",
|
||||
"project_version": "ESP32-Node_Switch-v2.7-8911-g35d4a1a14-dirty",
|
||||
"project_path": "C:/Users/alex/github/ESP-Nodes/ESP32-IDF_ESPNOW-Transmitter",
|
||||
"idf_path": "C:/Users/alex/esp/v5.4/esp-idf",
|
||||
"build_dir": "C:/Users/alex/github/ESP-Nodes/ESP32-IDF_ESPNOW-Transmitter/build",
|
||||
|
@@ -72,24 +72,6 @@ static void deletePeer (void)
|
||||
}
|
||||
}
|
||||
|
||||
static void espnow_update_channel(void) {
|
||||
|
||||
esp_now_del_peer(receiver_mac);
|
||||
esp_now_deinit();
|
||||
esp_wifi_set_channel(espnow_channel, WIFI_SECOND_CHAN_NONE);
|
||||
esp_now_init();
|
||||
memcpy(devices.peer_addr, receiver_mac, 6);
|
||||
devices.channel = espnow_channel;
|
||||
devices.encrypt = false;
|
||||
esp_now_add_peer(&devices);
|
||||
esp_now_register_send_cb(statusDataSend);
|
||||
if (espnow_channel < 11) {
|
||||
espnow_channel++;
|
||||
} else {
|
||||
esp_restart();
|
||||
}
|
||||
}
|
||||
|
||||
static void sendData (void)
|
||||
{
|
||||
buffer.crc = 0;
|
||||
@@ -131,20 +113,6 @@ static void sendData (void)
|
||||
ESP_LOGE(TAG, "Ensure that received MAC is: %02X:%02X:%02X:%02X:%02X:%02X",
|
||||
receiver_mac[0], receiver_mac[1], receiver_mac[2],
|
||||
receiver_mac[3], receiver_mac[4], receiver_mac[5]);
|
||||
|
||||
//deletePeer();
|
||||
|
||||
espnow_update_channel();
|
||||
//vTaskDelay(pdMS_TO_TICKS(5000));
|
||||
|
||||
/*if (espnow_channel < 11) {
|
||||
espnow_channel++;
|
||||
} else {
|
||||
espnow_channel = 1;
|
||||
}*/
|
||||
|
||||
//ESP_LOGI(TAG, "Channel is set at %d", espnow_channel);
|
||||
//transmission_init();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -164,11 +132,8 @@ static void statusDataSend(const uint8_t *mac_addr, esp_now_send_status_t status
|
||||
ESP_LOGE(TAG, "esp_now_send() failed: %s", esp_err_to_name(status));
|
||||
ESP_LOGE(TAG, "Ensure that receiver is powered-on and MAC is correct.");
|
||||
//deletePeer();
|
||||
//esp_restart();
|
||||
|
||||
//espnow_update_channel();
|
||||
|
||||
/*esp_now_del_peer(receiver_mac);
|
||||
esp_now_del_peer(receiver_mac);
|
||||
esp_now_deinit();
|
||||
esp_wifi_set_channel(espnow_channel, WIFI_SECOND_CHAN_NONE);
|
||||
esp_now_init();
|
||||
@@ -181,15 +146,9 @@ static void statusDataSend(const uint8_t *mac_addr, esp_now_send_status_t status
|
||||
espnow_channel++;
|
||||
} else {
|
||||
esp_restart();
|
||||
}*/
|
||||
|
||||
//esp_now_deinit(); // Stop ESP-NOW
|
||||
//wifi_init();
|
||||
//esp_now_init();
|
||||
|
||||
//espnow_channel = 1; // Reset to channel 1 if it exceeds 11
|
||||
}
|
||||
}
|
||||
|
||||
//vTaskDelay(pdMS_TO_TICKS(5000));
|
||||
}
|
||||
|
||||
/* WiFi should start before using ESPNOW */
|
||||
@@ -271,9 +230,6 @@ void transmission_init()
|
||||
devices.encrypt = false;
|
||||
esp_now_add_peer(&devices);
|
||||
|
||||
//memcpy(devices.peer_addr, receiver_2_mac, 6);
|
||||
//esp_now_add_peer(&devices);
|
||||
|
||||
// Defince a task for periodically sending ESPNOW remote control data
|
||||
xTaskCreate(rc_send_data_task, "RC", 2048, NULL, 4, NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user