07-03-2025, 07:00 AM
I have purchased a B16. And I run this YAML file to flash. These are the errors I have received. Attached is the log.
logs_b16_run.txt (Size: 28.98 KB / Downloads: 119)
1. WARNING Using `switch.SWITCH_SCHEMA` is deprecated and will be removed in ESPHome 2025.11.0. Please use `switch.switch_schema(...)` instead. If you are seeing this, report an issue to the external_component author and ask them to update it. https://developers.esphome.io/blog/2025/...recations/. Component using this schema: tuya_wifi_mcu
and then this:
2.
Compiling .pioenvs/b16/FrameworkArduino/FunctionalInterrupt.cpp.o
.piolibdeps/b16/Tuya_WiFi_MCU_SDK/src/TuyaWifi.cpp: In constructor 'TuyaWifi::TuyaWifi()':
.piolibdeps/b16/Tuya_WiFi_MCU_SDK/src/TuyaWifi.cpp:34:33: error: no matching function for call to 'TuyaUart:
et_serial(USBCDC*)'
tuya_uart.set_serial(&Serial);
^
In file included from .piolibdeps/b16/Tuya_WiFi_MCU_SDK/src/TuyaWifi.h:19,
from .piolibdeps/b16/Tuya_WiFi_MCU_SDK/src/TuyaWifi.cpp:15: .piolibdeps/b16/Tuya_WiFi_MCU_SDK/src/TuyaUart.h:46:10: note: candidate: 'void TuyaUart:
et_serial(HardwareSerial*)'
void set_serial(TY_UART *serial);
^~~~~~~~~~
.piolibdeps/b16/Tuya_WiFi_MCU_SDK/src/TuyaUart.h:46:10: note: no known conversion for argument 1 from 'USBCDC*' to 'HardwareSerial*'
*** [.pioenvs/b16/libe10/Tuya_WiFi_MCU_SDK/TuyaWifi.cpp.o] Error 1
========================= [FAILED] Took 238.15 seconds =========================
logs_b16_run.txt (Size: 28.98 KB / Downloads: 119)
1. WARNING Using `switch.SWITCH_SCHEMA` is deprecated and will be removed in ESPHome 2025.11.0. Please use `switch.switch_schema(...)` instead. If you are seeing this, report an issue to the external_component author and ask them to update it. https://developers.esphome.io/blog/2025/...recations/. Component using this schema: tuya_wifi_mcu
and then this:
2.
Compiling .pioenvs/b16/FrameworkArduino/FunctionalInterrupt.cpp.o
.piolibdeps/b16/Tuya_WiFi_MCU_SDK/src/TuyaWifi.cpp: In constructor 'TuyaWifi::TuyaWifi()':
.piolibdeps/b16/Tuya_WiFi_MCU_SDK/src/TuyaWifi.cpp:34:33: error: no matching function for call to 'TuyaUart:
et_serial(USBCDC*)' tuya_uart.set_serial(&Serial);
^
In file included from .piolibdeps/b16/Tuya_WiFi_MCU_SDK/src/TuyaWifi.h:19,
from .piolibdeps/b16/Tuya_WiFi_MCU_SDK/src/TuyaWifi.cpp:15: .piolibdeps/b16/Tuya_WiFi_MCU_SDK/src/TuyaUart.h:46:10: note: candidate: 'void TuyaUart:
et_serial(HardwareSerial*)'void set_serial(TY_UART *serial);
^~~~~~~~~~
.piolibdeps/b16/Tuya_WiFi_MCU_SDK/src/TuyaUart.h:46:10: note: no known conversion for argument 1 from 'USBCDC*' to 'HardwareSerial*'
*** [.pioenvs/b16/libe10/Tuya_WiFi_MCU_SDK/TuyaWifi.cpp.o] Error 1
========================= [FAILED] Took 238.15 seconds =========================

