19 <_BANNER_STR[10], LT_LOGLEVEL);
20#if defined(__OPTIMIZE_SIZE__) && __OPTIMIZE_LEVEL__ > 0 && __OPTIMIZE_LEVEL__ <= 3
21 ESP_LOGCONFIG(TAG,
" Optimization: -Os, SDK: -O" STRINGIFY_MACRO(__OPTIMIZE_LEVEL__));
24#if defined(USE_LN882X) && defined(USE_WIFI)
26 static constexpr uint8_t SDK_DEFAULT_MAC[MAC_ADDRESS_SIZE] = {0x00, 0x50, 0xC2, 0x5E, 0x10, 0x88};
27 uint8_t mac[MAC_ADDRESS_SIZE];
29 if (memcmp(mac, SDK_DEFAULT_MAC, MAC_ADDRESS_SIZE) == 0) {
30 ESP_LOGE(TAG,
"MAC is the LN882H SDK default 00:50:C2:5E:10:88; only one device with it can be on a network. "
31 "On a Tuya module, set board: to its Tuya board (e.g. wl2s, wl2h-u) and flash over serial");
void publish_state(const std::string &state)