Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mDNS not showing all TXT records #248

Open
chrwei opened this issue Jan 28, 2024 · 23 comments
Open

mDNS not showing all TXT records #248

chrwei opened this issue Jan 28, 2024 · 23 comments

Comments

@chrwei
Copy link

chrwei commented Jan 28, 2024

I'm using a bk7231n cb2s based device with esphome and had already opened an issue there esphome/issues#5435 but it seems the issue is in libretiny's mDNS

to summarize the issue linked, when esphome adds a TXT record that is longer than 44 characters, that record, and any TXT records added after that, do not show up in the mDNS packet. They do show up in the esphome logs, so it's somewhere in how libretiny's mDNS handles the MDNS.addServiceTxt(service_type, proto, record.key.c_str(), record.value.c_str()); call.

I've looked at the code and I don't see anything obvious that would cause this, but my C++ skills are basic.

The same yaml works on esp8266, so it's not a non-printable character, I even retyped the line to be sure. I did attempt to compare the esp8266mDNS code, but it's too different to make a useful comparison.

@szupi-ipuzs
Copy link
Contributor

I don't know much about mdns and I don't know if this is related, but comparing different esphome implementations of MDNSComponent, there's one thing different with libretiny: lack of the loop() method, which other implementations seem to use to call update() periodically.
And the loop method is missing because it wasn't enabled for cases when USE_LIBRETINY is defined:

class MDNSComponent : public Component {
 public:
  void setup() override;
  void dump_config() override;

#if (defined(USE_ESP8266) || defined(USE_RP2040)) && defined(USE_ARDUINO)
  void loop() override;
#endif

@kuba2k2 Is this by design or was simply forgotten? Could this be related to @chrwei observerations ?

@kuba2k2
Copy link
Member

kuba2k2 commented Jan 29, 2024

It's not related - the loop() method was added by ESPHome after LibreTiny had mDNS working. It's most likely related to RP2040 support which needed that method. I think it's used to call some mDNS callbacks that need to be called periodically, if any.

As to why the original issue happens - I'm not sure. Maybe there is some hardcoded length limit that just breaks things when exceeded. It will need further investigation.

@chrwei
Copy link
Author

chrwei commented Jan 29, 2024

that's what i thought too, but unless there's a (char *)malloc limit I don't see one.

@chrwei
Copy link
Author

chrwei commented Feb 8, 2024

anyone able to reproduce this?

@Cossid
Copy link
Collaborator

Cossid commented Feb 11, 2024

Quickly looking into this, 44 is the length of the value you're adding into a TXT record, but it looks like the issue is when the full record length is 64 or more characters, which is a much more logical number from a coding perspective.

In your own example

I've narrowed it to an issue with package_import_url. If I make the url 44 characters or less it works, and 45 or more it fails.
"github://chrwei/esphome_templates/test.yaml@" works and "github://chrwei/esphome_templates/test.yaml@m" fails.

the first would have a value of
package_import_url=github://chrwei/esphome_templates/test.yaml@ which is an overall length of 63
the second failed value of
package_import_url=github://chrwei/esphome_templates/test.yaml@m would be an overall length of 64

It does appear I have a few devices that are not broadcasting mdns as well, but I am unsure of why at this point, I don't believe I have any fields that exceed a total length of 63/64. The issue for mine might be the PTR record exceeding 31/32. (edit: don't think it's PTR related, as the I have some longer than the ones not sending mdns packets)

Uncertain if it is related or not, but I do find #define MDNS_LABEL_MAXLEN 63 in the Beken SDK.

@chrwei
Copy link
Author

chrwei commented Feb 11, 2024

I hadn't though of that, and that would overflow an int8 length, I just don't see anywhere that would be the issue

@Cossid
Copy link
Collaborator

Cossid commented Feb 11, 2024

A little further investigating, neither 44/45 nor 63/64 appear to be the issue.

I had no field that long, but I shorted one of my longest strings until I started receiving a packet. Then I shortened a different TXT record, and I was able to expand the one I previously had to shorten by that same amount.

It seems the maximum data length of all TXT data is capped at 213 bytes, which again, is a very unusual/non-programmatic number.

@Cossid
Copy link
Collaborator

Cossid commented Feb 11, 2024

I did find this in some lwip multicast mdns documents ( https://www.nongnu.org/lwip/2_0_x/group__mdns.html )

Since a hostname struct is used for TXT storage each single item can be max
63 bytes long, and the total max length (including length bytes for each
item) is 255 bytes.

However, that doesn't seem to match what I'm experiencing in my own testing, as I don't have any single record including length (which is 1 byte) that is anywhere near 63 bytes, longest is 56 + length byte, so now I'm not sure what to think.

@szupi-ipuzs
Copy link
Contributor

Since I don't know much about mdns, I decided to try this from a different angle.
I've extracted the mdns code from esphome/libretiny and built it as a separate app on ubuntu with gtest framework (mocking the actual lwip implementation).
Then I run this with valgrind and it did find some problems:

~/projects/mdns_test/.build$ valgrind --leak-check=full --show-leak-kinds=all  test/lt_mdns_test
==2714346== Memcheck, a memory error detector
==2714346== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==2714346== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==2714346== Command: test/lt_mdns_test
==2714346== 
Running main() from /home/szupi/projects/mdns_test/.build/_deps/googletest-src/googletest/src/gtest_main.cc
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from MDNSComponent
[ RUN      ] MDNSComponent.aaa
Starting (TEST_NAME)
GMOCK WARNING:
Uninteresting mock function call - returning directly.
    Function call: mdns_resp_register_name_result_cb(0x1fa027)
NOTE: You can safely ignore the above warning unless this call should not happen.  Do not suppress it by blindly adding an EXPECT_CALL() if you don't mean to enforce the call.  See https://github.com/google/googletest/blob/main/docs/gmock_cook_book.md#knowing-when-to-expect-useoncall for details.

GMOCK WARNING:
Uninteresting mock function call - returning directly.
    Function call: mdns_resp_init()
NOTE: You can safely ignore the above warning unless this call should not happen.  Do not suppress it by blindly adding an EXPECT_CALL() if you don't mean to enforce the call.  See https://github.com/google/googletest/blob/main/docs/gmock_cook_book.md#knowing-when-to-expect-useoncall for details.
==2714346== Invalid write of size 1
==2714346==    at 0x484EE8E: strcpy (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==2714346==    by 0x1F9CED: ensureUnderscore(char const*) (mDNS.cpp:9)
==2714346==    by 0x1F9D65: mDNS::addService(char*, char*, unsigned short) (mDNS.cpp:20)
==2714346==    by 0x2024CB: mDNS::addService(char const*, char const*, unsigned short) (mDNS.h:94)
==2714346==    by 0x2023A3: esphome::mdns::MDNSComponent::setup() (mdns_libretiny.cpp:31)
==2714346==    by 0x1DB22D: MDNSComponent_aaa_Test::TestBody() (lt_mdns_test.cpp:82)
==2714346==    by 0x258AE8: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2612)
==2714346==    by 0x250CAC: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2648)
==2714346==    by 0x22ABFD: testing::Test::Run() (gtest.cc:2687)
==2714346==    by 0x22B718: testing::TestInfo::Run() (gtest.cc:2836)
==2714346==    by 0x22C11E: testing::TestSuite::Run() (gtest.cc:3015)
==2714346==    by 0x23C645: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5920)
==2714346==  Address 0x4e25de5 is 0 bytes after a block of size 5 alloc'd
==2714346==    at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==2714346==    by 0x1F9CB9: ensureUnderscore(char const*) (mDNS.cpp:7)
==2714346==    by 0x1F9D65: mDNS::addService(char*, char*, unsigned short) (mDNS.cpp:20)
==2714346==    by 0x2024CB: mDNS::addService(char const*, char const*, unsigned short) (mDNS.h:94)
==2714346==    by 0x2023A3: esphome::mdns::MDNSComponent::setup() (mdns_libretiny.cpp:31)
==2714346==    by 0x1DB22D: MDNSComponent_aaa_Test::TestBody() (lt_mdns_test.cpp:82)
==2714346==    by 0x258AE8: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2612)
==2714346==    by 0x250CAC: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2648)
==2714346==    by 0x22ABFD: testing::Test::Run() (gtest.cc:2687)
==2714346==    by 0x22B718: testing::TestInfo::Run() (gtest.cc:2836)
==2714346==    by 0x22C11E: testing::TestSuite::Run() (gtest.cc:3015)
==2714346==    by 0x23C645: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5920)
==2714346== 
==2714346== Invalid write of size 1
==2714346==    at 0x484EE8E: strcpy (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==2714346==    by 0x1F9CED: ensureUnderscore(char const*) (mDNS.cpp:9)
==2714346==    by 0x1F9E22: mDNS::addServiceTxt(char*, char*, char*, char*) (mDNS.cpp:29)
==2714346==    by 0x20250C: mDNS::addServiceTxt(char const*, char const*, char const*, char const*) (mDNS.h:102)
==2714346==    by 0x202420: esphome::mdns::MDNSComponent::setup() (mdns_libretiny.cpp:33)
==2714346==    by 0x1DB22D: MDNSComponent_aaa_Test::TestBody() (lt_mdns_test.cpp:82)
==2714346==    by 0x258AE8: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2612)
==2714346==    by 0x250CAC: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2648)
==2714346==    by 0x22ABFD: testing::Test::Run() (gtest.cc:2687)
==2714346==    by 0x22B718: testing::TestInfo::Run() (gtest.cc:2836)
==2714346==    by 0x22C11E: testing::TestSuite::Run() (gtest.cc:3015)
==2714346==    by 0x23C645: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5920)
==2714346==  Address 0x4e25e35 is 0 bytes after a block of size 5 alloc'd
==2714346==    at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==2714346==    by 0x1F9CB9: ensureUnderscore(char const*) (mDNS.cpp:7)
==2714346==    by 0x1F9E22: mDNS::addServiceTxt(char*, char*, char*, char*) (mDNS.cpp:29)
==2714346==    by 0x20250C: mDNS::addServiceTxt(char const*, char const*, char const*, char const*) (mDNS.h:102)
==2714346==    by 0x202420: esphome::mdns::MDNSComponent::setup() (mdns_libretiny.cpp:33)
==2714346==    by 0x1DB22D: MDNSComponent_aaa_Test::TestBody() (lt_mdns_test.cpp:82)
==2714346==    by 0x258AE8: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2612)
==2714346==    by 0x250CAC: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2648)
==2714346==    by 0x22ABFD: testing::Test::Run() (gtest.cc:2687)
==2714346==    by 0x22B718: testing::TestInfo::Run() (gtest.cc:2836)
==2714346==    by 0x22C11E: testing::TestSuite::Run() (gtest.cc:3015)
==2714346==    by 0x23C645: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5920)
==2714346== 
[       OK ] MDNSComponent.aaa (275 ms)
[----------] 1 test from MDNSComponent (300 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (476 ms total)
[  PASSED  ] 1 test.
==2714346== 
==2714346== HEAP SUMMARY:
==2714346==     in use at exit: 76 bytes in 3 blocks
==2714346==   total heap usage: 221 allocs, 218 frees, 118,279 bytes allocated
==2714346== 
==2714346== 10 bytes in 1 blocks are still reachable in loss record 1 of 3
==2714346==    at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==2714346==    by 0x4C8258E: strdup (strdup.c:42)
==2714346==    by 0x1FA48D: mDNS::begin(char const*) (LwIPmDNS.cpp:121)
==2714346==    by 0x2022F5: esphome::mdns::MDNSComponent::setup() (mdns_libretiny.cpp:16)
==2714346==    by 0x1DB22D: MDNSComponent_aaa_Test::TestBody() (lt_mdns_test.cpp:82)
==2714346==    by 0x258AE8: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2612)
==2714346==    by 0x250CAC: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2648)
==2714346==    by 0x22ABFD: testing::Test::Run() (gtest.cc:2687)
==2714346==    by 0x22B718: testing::TestInfo::Run() (gtest.cc:2836)
==2714346==    by 0x22C11E: testing::TestSuite::Run() (gtest.cc:3015)
==2714346==    by 0x23C645: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5920)
==2714346==    by 0x259C3D: bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2612)
==2714346== 
==2714346== 10 bytes in 1 blocks are still reachable in loss record 2 of 3
==2714346==    at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==2714346==    by 0x4C8258E: strdup (strdup.c:42)
==2714346==    by 0x1F9D2E: mDNS::setInstanceName(char const*) (mDNS.cpp:16)
==2714346==    by 0x1FA4A7: mDNS::begin(char const*) (LwIPmDNS.cpp:122)
==2714346==    by 0x2022F5: esphome::mdns::MDNSComponent::setup() (mdns_libretiny.cpp:16)
==2714346==    by 0x1DB22D: MDNSComponent_aaa_Test::TestBody() (lt_mdns_test.cpp:82)
==2714346==    by 0x258AE8: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2612)
==2714346==    by 0x250CAC: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2648)
==2714346==    by 0x22ABFD: testing::Test::Run() (gtest.cc:2687)
==2714346==    by 0x22B718: testing::TestInfo::Run() (gtest.cc:2836)
==2714346==    by 0x22C11E: testing::TestSuite::Run() (gtest.cc:3015)
==2714346==    by 0x23C645: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5920)
==2714346== 
==2714346== 56 bytes in 1 blocks are still reachable in loss record 3 of 3
==2714346==    at 0x4849013: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==2714346==    by 0x20714B: testing::(anonymous namespace)::UninterestingCallReactionMap() (gmock-spec-builders.cc:552)
==2714346==    by 0x20737E: testing::Mock::GetReactionOnUninterestingCalls(void const*) (gmock-spec-builders.cc:601)
==2714346==    by 0x1E2AAC: testing::internal::FunctionMocker<void (void (*)(netif*, unsigned char))>::InvokeWith(std::tuple<void (*)(netif*, unsigned char)>&&) (gmock-spec-builders.h:1802)
==2714346==    by 0x1DEA65: testing::internal::FunctionMocker<void (void (*)(netif*, unsigned char))>::Invoke(void (*)(netif*, unsigned char)) (gmock-spec-builders.h:1548)
==2714346==    by 0x1DD0BC: LWIP_MDNS_Mock::mdns_resp_register_name_result_cb(void (*)(netif*, unsigned char)) (lt_mdns_test.cpp:25)
==2714346==    by 0x1DB1D7: mdns_resp_register_name_result_cb (lt_mdns_test.cpp:68)
==2714346==    by 0x1FA4D8: mDNS::begin(char const*) (LwIPmDNS.cpp:128)
==2714346==    by 0x2022F5: esphome::mdns::MDNSComponent::setup() (mdns_libretiny.cpp:16)
==2714346==    by 0x1DB22D: MDNSComponent_aaa_Test::TestBody() (lt_mdns_test.cpp:82)
==2714346==    by 0x258AE8: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2612)
==2714346==    by 0x250CAC: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2648)
==2714346== 
==2714346== LEAK SUMMARY:
==2714346==    definitely lost: 0 bytes in 0 blocks
==2714346==    indirectly lost: 0 bytes in 0 blocks
==2714346==      possibly lost: 0 bytes in 0 blocks
==2714346==    still reachable: 76 bytes in 3 blocks
==2714346==         suppressed: 0 bytes in 0 blocks
==2714346== 
==2714346== For lists of detected and suppressed errors, rerun with: -s
==2714346== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)

The above log tells 2 things:

  1. There's a bug somewhere in the ensureUnderscore() method that causes buffer overrun(?) - this might actually cause the weird behavior we observe. It's worth debugging this further.
  2. There's a memory leak when destroying the MDNS object. Shouldn't the pointers in the vector be freed?

@chrwei if we setup all your strings in MDNSComponent::compile_records_() exactly how they appear in your device, we might actually be able to debug this issue. As long as it is reproducible on a PC :) But at least we'll know.

Attached is (almost) all that is needed to build and run this test. Additionally you need to install liblwip (sudo apt install liblwip-dev).
mdns_test.tar.gz

@szupi-ipuzs
Copy link
Contributor

Ok, after a lot of debugging and chasing ghosts in the code I came to the same conclusion as you guys: this is an issue with hard limit in lwip implementation - max 64 characters for single txt label (length field not included).
The mdns_resp_add_service_txtitem() function does return error and this breaks the loop, so the remaining txt entries are not processed, even if they might fit in the buffer. I think this can be improved. But the 64 char limit is something that needs to be changed in LwIP. Or libretiny can switch to a different implementation of mdns :)

Since I don't know much about mdns

Hey, I've learned something today :)

@kuba2k2
Copy link
Member

kuba2k2 commented Mar 5, 2024

We could include a fixup for "lwip/apps/mdns.h" that will first include the original file, then #undef the MDNS_LABEL_MAXLEN and #define it again with a higher value. Fixups are placed before any other directory in the search path. At least that's the case for SDK include paths.

@szupi-ipuzs
Copy link
Contributor

That might work providing lwip always use this constant consequently - otherwise it's risky. I would first ask the authors opinion before patching it like that.
Or we can actually ask them to change it - by creating a pull request. At least then they would (hopfully) tell us if this is a correct approach.

@szupi-ipuzs
Copy link
Contributor

I've just read in the RFC that this limit is imposed by the specification... so shouldn't this also NOT work with other implementations?

@Cossid
Copy link
Collaborator

Cossid commented Mar 8, 2024

I haven't test your changes yet, but that's just it, none of the strings I was testing with personally should have even been hitting that 63 character length. So it's possible I was running into the underflow error, and OP is running into the max length issue.

I honestly don't even know the difference between what is a label and what is a name, I have little knowledge of the core of mDNS.

Edit:
https://datatracker.ietf.org/doc/html/rfc6763#section-6.4 is the RFC for service discovery text records, which is what we are dealing with here as far as I understand it. Interestingly, the spec says the key should be no more than 9 characters, but doesn't actually set a limit. The limit for the key=value format as a whole is 255

@Cossid
Copy link
Collaborator

Cossid commented Mar 8, 2024

The more I test, the more I think we were just running into random underruns that would just kill the entire mDNS send (because of the loop break/kill/return instead of just skipping the single TXT record).

The value I was testing with before (which in the TXT key=value format was only a length of 59 and was previously failing) is now working, and the only thing that has changed in the mDNS packet (that I am aware of) is the ESPHome version string in a different TXT record.

@Cossid
Copy link
Collaborator

Cossid commented Mar 8, 2024

Unfortunately, it looks like the underflow was not our issue. I tried deploying it to a problematic device, and it is no different.

For me, the only reproducible case is when the data size of all TXT records combined exceeds a data length of 208, the entire mDNS packet is dropped/not sent.

Working example
image

And it will begin to fail if I add any characters into either project_name or project_version
If I reduce characters in either field, I can add them to the other field, and as long as the total data length of the TXT type stays <= 208, it seems to work (Ex, if the project name ends in RGBWW and project version is just 0.0.1 it also works)

And it's not like we're running into packet size issues, as the entire mDNS packet is only 475 bytes when the TXT data length is 208.

None of my individual TXT records are exceeding 63 characters, so that's not the limiting factor either.

Edit: my previous testing the overall data length was 213. Not sure if other non-TXT records come in to play or not. It does seem like I call the overall packet size being 475 then as well (may have also been a different device).

@chrwei
Copy link
Author

chrwei commented Mar 9, 2024

Which brings up, what's esp8266mDNS doing different that the same ESPHome config works on esp8266 devices?
based on my packet caps it seems esp8266mDNS splits it into 3 packets:
host.local, "QU" question A
host._http._tcp.local, "QU" question PTR
host._esphomelib._tcp.local, "QU" question PTR

lwip seems to try to shove it all into one packet, but it is separate TXT records, so I'm not sure why that matters.

wireshark capture zip file (2KB) https://www.dropbox.com/scl/fi/gx8n34zqkvf3spbje2pxs/mdnscap.zip?rlkey=gju38y2ejj2oqjszva2ck7d4t&dl=0

.232 is the esp8266 and .181 is the bk72xx. capture is power on one, then power on the other.
Add this filter in wireshark to limit to just the standard query: _ws.col.info contains "Standard query 0x0000"

@Cossid
Copy link
Collaborator

Cossid commented Mar 9, 2024

I'm not fully convinced it's related to packet size either, as the initial packet is large, but subsequent packets sent later are smaller (on devices that don't have this issue). The issue on LibreTiny is if it doesn't send the first packet, it also never sends any subsequent packets, so it appears the entire mDNS module fails and stops.

I've been testing remotely so far, without serial, so I haven't had a chance to enable LT debug logs yet. I'll try it on a dev board with serial and see what I can find there.

@Cossid
Copy link
Collaborator

Cossid commented Mar 9, 2024

Serial logging only gives one more tiny clue, but not smoking gun like an error like I was hoping.

The following is the full LT mdns output when the packet is not sent:

D [      7.960] MDNS: Starting (devboard-cbu-123456789012345)
D [      7.966] MDNS: Starting mDNS on netif 1
D [      7.970] MDNS: Added IGMP to netif 1
D [      7.978] MDNS: mDNS started on netif 1, announcing it to network
D [      7.982] MDNS: Starting mDNS on netif 0
D [      7.988] MDNS: Added IGMP to netif 0
D [      7.994] MDNS: mDNS started on netif 0, announcing it to network
D [      8.000] MDNS: Add service: netif 1 / devboard-cbu-123456789012345 / _esphomelib / 1 / 6053
D [      8.010] MDNS: Add service: netif 0 / devboard-cbu-123456789012345 / _esphomelib / 1 / 6053
D [      8.020] MDNS: Add service: netif 1 / devboard-cbu-123456789012345 / _http / 1 / 80
D [      8.028] MDNS: Add service: netif 0 / devboard-cbu-123456789012345 / _http / 1 / 80

and the following is the output when the packet is sent:

D [     11.952] MDNS: Starting (devboard-cbu-123456789012345)
D [     11.954] MDNS: Starting mDNS on netif 1
D [     11.958] MDNS: Added IGMP to netif 1
D [     11.966] MDNS: mDNS started on netif 1, announcing it to network
D [     11.970] MDNS: Starting mDNS on netif 0
D [     11.976] MDNS: Added IGMP to netif 0
D [     11.982] MDNS: mDNS started on netif 0, announcing it to network
D [     11.988] MDNS: Add service: netif 1 / devboard-cbu-123456789012345 / _esphomelib / 1 / 6053
D [     11.998] MDNS: Add service: netif 0 / devboard-cbu-123456789012345 / _esphomelib / 1 / 6053
D [     12.008] MDNS: Add service: netif 1 / devboard-cbu-123456789012345 / _http / 1 / 80
D [     12.016] MDNS: Add service: netif 0 / devboard-cbu-123456789012345 / _http / 1 / 80
D [     12.964] MDNS: Status: netif 1, status 1
D [     12.992] MDNS: Status: netif 0, status 1

So we get 2 status lines at the end if successful, but nothing if not.

@chrwei
Copy link
Author

chrwei commented Mar 9, 2024

yeah you'd need to add more debug output to the code. the MDNS.addServiceTxt(service_type, proto, record.key.c_str(), record.value.c_str()); call is the issue, so the extra debug would need to be inside that addServiceTxt method to see where it's "crashing"

@Cossid
Copy link
Collaborator

Cossid commented Mar 9, 2024

The issue isn't in addServiceTxt, but rather the callbacks

I modified mdnsTxtCallback to log every time it called mdns_resp_add_service_txtitem

Here is the output from a working case (cleaned up)

D [      6.000] MDNS: Starting (devboard-cbu-123456789012345)
D [      6.004] MDNS: Starting mDNS on netif 1
D [      6.010] MDNS: Added IGMP to netif 1
D [      6.016] MDNS: mDNS started on netif 1, announcing it to network
D [      6.022] MDNS: Starting mDNS on netif 0
D [      6.026] MDNS: Added IGMP to netif 0
D [      6.032] MDNS: mDNS started on netif 0, announcing it to network
D [      6.038] MDNS: Add service: netif 1 / devboard-cbu-123456789012345 / _esphomelib / 1 / 6053
D [      6.054] MDNS: Add service: netif 0 / devboard-cbu-123456789012345 / _esphomelib / 1 / 6053
D [      6.058] MDNS: mDNS::addServiceTxtImpl - item: friendly_name=Testing1234567890123456789012 service: _esphomelib, size: 1
D [      6.070] MDNS: mDNS::addServiceTxtImpl - item: version=2024.2.2 service: _esphomelib, size: 1
D [      6.080] MDNS: mDNS::addServiceTxtImpl - item: mac=d8d6685cad59 service: _esphomelib, size: 1
D [      6.090] MDNS: mDNS::addServiceTxtImpl - item: platform=BK7231N service: _esphomelib, size: 1
D [      6.100] MDNS: mDNS::addServiceTxtImpl - item: board=generic-bk7231n-qfn32-tuya service: _esphomelib, size: 1
D [      6.110] MDNS: mDNS::addServiceTxtImpl - item: network=wifi service: _esphomelib, size: 1
D [      6.120] MDNS: mDNS::addServiceTxtImpl - item: project_name=EarthBulb.A19_WB8P_SM2135_RGBWW service: _esphomelib, size: 1
D [      6.132] MDNS: mDNS::addServiceTxtImpl - item: project_version=0.0.1 service: _esphomelib, size: 1
D [      6.136] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [      6.146] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [      6.160] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [      6.176] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [      6.192] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [      6.210] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [      6.232] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW strlen 44
D [      6.258] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [      6.268] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [      6.280] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [      6.296] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [      6.312] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [      6.332] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [      6.352] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW strlen 44
D [      6.382] MDNS: Add service: netif 1 / devboard-cbu-123456789012345 / _http / 1 / 80
D [      6.392] MDNS: Add service: netif 0 / devboard-cbu-123456789012345 / _http / 1 / 80
D [      6.582] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [      6.590] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [      6.604] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [      6.620] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [      6.636] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [      6.654] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [      6.676] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW strlen 44
D [      6.700] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi,project_name=EarthBulb.A19_WB8P_SM2135_RGBWW record project_version=0.0.1 strlen 21
D [      6.730] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [      6.738] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [      6.750] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [      6.766] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [      6.782] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [      6.802] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [      6.822] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW strlen 44
D [      6.846] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi,project_name=EarthBulb.A19_WB8P_SM2135_RGBWW record project_version=0.0.1 strlen 21
D [      6.976] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [      6.986] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [      7.000] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [      7.014] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [      7.032] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [      7.050] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [      7.070] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW strlen 44
D [      7.094] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi,project_name=EarthBulb.A19_WB8P_SM2135_RGBWW record project_version=0.0.1 strlen 21
D [      7.126] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [      7.134] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [      7.146] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [      7.162] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [      7.178] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [      7.196] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [      7.218] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW strlen 44
D [      7.242] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi,project_name=EarthBulb.A19_WB8P_SM2135_RGBWW record project_version=0.0.1 strlen 21
D [      7.372] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [      7.374] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [      7.388] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [      7.402] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [      7.420] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [      7.438] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [      7.458] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW strlen 44
D [      7.482] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi,project_name=EarthBulb.A19_WB8P_SM2135_RGBWW record project_version=0.0.1 strlen 21
D [      7.520] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [      7.522] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [      7.534] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [      7.550] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [      7.566] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [      7.584] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [      7.606] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW strlen 44
D [      7.630] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi,project_name=EarthBulb.A19_WB8P_SM2135_RGBWW record project_version=0.0.1 strlen 21
[C][mdns:115]: mDNS:
[C][mdns:116]:   Hostname: devboard-cbu-123456789012345
[V][mdns:117]:   Services:
[V][mdns:119]:   - _esphomelib, _tcp, 6053
[V][mdns:121]:     TXT: friendly_name = Testing1234567890123456789012
[V][mdns:121]:     TXT: version = 2024.2.2
[V][mdns:121]:     TXT: mac = d8d6685cad59
[V][mdns:121]:     TXT: platform = BK7231N
[V][mdns:121]:     TXT: board = generic-bk7231n-qfn32-tuya
[V][mdns:121]:     TXT: network = wifi
[V][mdns:121]:     TXT: project_name = EarthBulb.A19_WB8P_SM2135_RGBWW
[V][mdns:121]:     TXT: project_version = 0.0.1
[V][mdns:119]:   - _http, _tcp, 80
D [      7.762] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [      7.770] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [      7.784] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [      7.800] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [      7.816] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [      7.834] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [      7.856] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW strlen 44
D [      7.880] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi,project_name=EarthBulb.A19_WB8P_SM2135_RGBWW record project_version=0.0.1 strlen 21
D [      7.906] MDNS: Status: netif 1, status 1
D [      7.912] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [      7.922] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [      7.936] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [      7.950] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [      7.968] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [      7.986] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [      8.006] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW strlen 44
D [      8.032] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi,project_name=EarthBulb.A19_WB8P_SM2135_RGBWW record project_version=0.0.1 strlen 21
D [      8.058] MDNS: Status: netif 0, status 1
D [      8.066] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [      8.074] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [      8.088] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [      8.102] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [      8.120] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [      8.138] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [      8.158] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW strlen 44
D [      8.182] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi,project_name=EarthBulb.A19_WB8P_SM2135_RGBWW record project_version=0.0.1 strlen 21


D [    103.336] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [    103.338] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [    103.350] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [    103.366] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [    103.382] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [    103.400] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [    103.422] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW strlen 44
D [    103.446] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi,project_name=EarthBulb.A19_WB8P_SM2135_RGBWW record project_version=0.0.1 strlen 21

D [    113.372] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [    113.374] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [    113.388] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [    113.402] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [    113.418] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [    113.438] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [    113.458] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW strlen 44
D [    113.482] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi,project_name=EarthBulb.A19_WB8P_SM2135_RGBWW record project_version=0.0.1 strlen 21

D [    722.042] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [    722.042] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [    722.056] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [    722.070] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [    722.086] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [    722.106] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [    722.126] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW strlen 44
D [    722.150] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi,project_name=EarthBulb.A19_WB8P_SM2135_RGBWW record project_version=0.0.1 strlen 21
D [    722.196] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [    722.196] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [    722.210] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [    722.224] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [    722.240] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [    722.260] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [    722.280] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW strlen 44
D [    722.304] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi,project_name=EarthBulb.A19_WB8P_SM2135_RGBWW record project_version=0.0.1 strlen 21

D [    732.084] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [    732.084] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [    732.098] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [    732.112] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [    732.128] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [    732.148] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [    732.168] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW strlen 44
D [    732.192] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi,project_name=EarthBulb.A19_WB8P_SM2135_RGBWW record project_version=0.0.1 strlen 21

It hits the status, and then the callback ceases to be called. Then when it resends packets, it goes through a loop and promptly stops each time.

For the non working case, it never breaks and seems stuck in a loop in mdnsTxtCallback

D [      7.954] MDNS: Starting (devboard-cbu-123456789012345)
D [      7.958] MDNS: Starting mDNS on netif 1
D [      7.964] MDNS: Added IGMP to netif 1
D [      7.970] MDNS: mDNS started on netif 1, announcing it to network
D [      7.976] MDNS: Starting mDNS on netif 0
D [      7.980] MDNS: Added IGMP to netif 0
D [      7.986] MDNS: mDNS started on netif 0, announcing it to network
D [      7.992] MDNS: Add service: netif 1 / devboard-cbu-123456789012345 / _esphomelib / 1 / 6053
D [      8.002] MDNS: Add service: netif 0 / devboard-cbu-123456789012345 / _esphomelib / 1 / 6053
D [      8.012] MDNS: mDNS::addServiceTxtImpl - item: friendly_name=Testing1234567890123456789012 service: _esphomelib, size: 1
D [      8.024] MDNS: mDNS::addServiceTxtImpl - item: version=2024.2.2 service: _esphomelib, size: 1
D [      8.034] MDNS: mDNS::addServiceTxtImpl - item: mac=d8d6685cad59 service: _esphomelib, size: 1
D [      8.044] MDNS: mDNS::addServiceTxtImpl - item: platform=BK7231N service: _esphomelib, size: 1
D [      8.054] MDNS: mDNS::addServiceTxtImpl - item: board=generic-bk7231n-qfn32-tuya service: _esphomelib, size: 1
D [      8.064] MDNS: mDNS::addServiceTxtImpl - item: network=wifi service: _esphomelib, size: 1
D [      8.074] MDNS: mDNS::addServiceTxtImpl - item: project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb service: _esphomelib, size: 1
D [      8.086] MDNS: mDNS::addServiceTxtImpl - item: project_version=0.0.1 service: _esphomelib, size: 1
D [      8.090] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [      8.102] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [      8.114] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [      8.130] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [      8.146] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [      8.164] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [      8.186] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [      8.212] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [      8.222] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [      8.236] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [      8.250] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [      8.266] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [      8.286] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [      8.306] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [      8.338] MDNS: Add service: netif 1 / devboard-cbu-123456789012345 / _http / 1 / 80
D [      8.348] MDNS: Add service: netif 0 / devboard-cbu-123456789012345 / _http / 1 / 80
D [      8.538] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [      8.546] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [      8.560] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [      8.576] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [      8.592] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [      8.610] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [      8.632] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [      8.656] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [      8.684] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [      8.694] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [      8.708] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [      8.722] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [      8.738] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [      8.758] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [      8.778] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [      8.804] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [      8.932] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [      8.942] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [      8.956] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [      8.972] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [      8.988] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [      9.006] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [      9.028] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [      9.052] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [      9.080] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [      9.090] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [      9.104] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [      9.118] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [      9.134] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [      9.154] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [      9.174] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [      9.200] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
ad59-uptime'
D [      9.328] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [      9.330] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [      9.342] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [      9.358] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [      9.374] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [      9.392] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [      9.414] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [      9.438] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [      9.476] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [      9.476] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [      9.490] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [      9.504] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [      9.522] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [      9.540] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [      9.560] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [      9.586] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
[C][mdns:115]: mDNS:
[C][mdns:116]:   Hostname: devboard-cbu-123456789012345
[V][mdns:117]:   Services:
[V][mdns:119]:   - _esphomelib, _tcp, 6053
[V][mdns:121]:     TXT: friendly_name = Testing1234567890123456789012
[V][mdns:121]:     TXT: version = 2024.2.2
[V][mdns:121]:     TXT: mac = d8d6685cad59
[V][mdns:121]:     TXT: platform = BK7231N
[V][mdns:121]:     TXT: board = generic-bk7231n-qfn32-tuya
D [      9.714] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [      9.724] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [      9.738] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [      9.754] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [      9.770] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [      9.788] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [      9.810] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [      9.834] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [      9.862] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [      9.872] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [      9.886] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [      9.902] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [      9.918] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [      9.936] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [      9.958] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [      9.982] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
[V][mdns:121]:     TXT: network = wifi
[V][mdns:121]:     TXT: project_name = EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb
[V][mdns:121]:     TXT: project_version = 0.0.1
[V][mdns:119]:   - _http, _tcp, 80
D [     10.110] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     10.114] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     10.128] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     10.142] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     10.158] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     10.178] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     10.198] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     10.224] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     10.258] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     10.268] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     10.282] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     10.298] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     10.314] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     10.332] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     10.354] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     10.378] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     10.500] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     10.510] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     10.524] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     10.540] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     10.556] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     10.574] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     10.596] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     10.620] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     10.654] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     10.664] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     10.678] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     10.694] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     10.710] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     10.728] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     10.750] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     10.774] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     10.896] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     10.906] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     10.920] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     10.936] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     10.952] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     10.970] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     10.992] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     11.016] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     11.050] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     11.060] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     11.074] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     11.088] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     11.106] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     11.124] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     11.144] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     11.170] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     11.292] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     11.294] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     11.306] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     11.322] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     11.338] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     11.356] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     11.378] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     11.402] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     11.446] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     11.446] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     11.460] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     11.474] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     11.492] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     11.510] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     11.530] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     11.556] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     11.678] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     11.678] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     11.692] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     11.706] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     11.724] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     11.742] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     11.762] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     11.788] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     11.832] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     11.832] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     11.846] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     11.860] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     11.878] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     11.896] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     11.916] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     11.942] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     12.064] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     12.064] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     12.078] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     12.094] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     12.110] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     12.128] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     12.148] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     12.174] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     12.218] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     12.218] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     12.232] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     12.248] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     12.264] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     12.282] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     12.302] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     12.328] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     12.450] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     12.450] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     12.464] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     12.478] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     12.496] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     12.514] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     12.534] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     12.560] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     12.604] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     12.604] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     12.618] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     12.632] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     12.650] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     12.668] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     12.688] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     12.714] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     12.836] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     12.836] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     12.850] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     12.866] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     12.882] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     12.900] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     12.920] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     12.946] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     12.990] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     12.990] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     13.004] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     13.018] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     13.036] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     13.054] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     13.074] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     13.100] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     13.222] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     13.224] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     13.236] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     13.252] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     13.268] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     13.286] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     13.308] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     13.332] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     13.376] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     13.376] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     13.390] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     13.404] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     13.422] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     13.440] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     13.460] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     13.486] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     13.608] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     13.608] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     13.622] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     13.636] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     13.654] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     13.672] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     13.692] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     13.718] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     13.762] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     13.762] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     13.776] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     13.790] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     13.808] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     13.826] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     13.846] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     13.872] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     13.994] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     13.994] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     14.008] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     14.022] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     14.040] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     14.058] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     14.078] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     14.104] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     14.148] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     14.148] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     14.162] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     14.178] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     14.194] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     14.212] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     14.232] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     14.258] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     14.380] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     14.382] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     14.394] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     14.410] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     14.426] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     14.444] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     14.466] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     14.490] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     14.534] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     14.534] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     14.548] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     14.562] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     14.580] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     14.598] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     14.618] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     14.644] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     14.766] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     14.768] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     14.780] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     14.796] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     14.812] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     14.830] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     14.852] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     14.876] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     14.920] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     14.920] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     14.934] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     14.948] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     14.966] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     14.984] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     15.004] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     15.030] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     15.152] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     15.154] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     15.166] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     15.182] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     15.198] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     15.216] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     15.238] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     15.262] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21
D [     15.306] MDNS: mdnsTxtCallback adding record for service  record friendly_name=Testing1234567890123456789012 strlen 43
D [     15.306] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012 record version=2024.2.2 strlen 16
D [     15.320] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2 record mac=d8d6685cad59 strlen 16
D [     15.336] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59 record platform=BK7231N strlen 16
D [     15.352] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N record board=generic-bk7231n-qfn32-tuya strlen 32
D [     15.370] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya record network=wifi strlen 12
D [     15.390] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi record project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb strlen 49
D [     15.416] MDNS: mdnsTxtCallback adding record for service +friendly_name=Testing1234567890123456789012version=2024.2.2mac=d8d6685cad59platform=BK7231N board=generic-bk7231n-qfn32-tuya
network=wifi1project_name=EarthBulb.A19_WB8P_SM2135_RGBWW_Bulb record project_version=0.0.1 strlen 21

This is truncated, but it would keep going on forever.

@dwmw2
Copy link
Contributor

dwmw2 commented Sep 3, 2024

I think it's just hitting the LwIP mDNS limits from mdns.h:

#define MDNS_LABEL_MAXLEN  63
#define MDNS_DOMAIN_MAXLEN 256

I think those are too small. RFC6763 §6.2 says:

[6.2](https://datatracker.ietf.org/doc/html/rfc6763#section-6.2).  DNS-SD TXT Record Size

   The total size of a typical DNS-SD TXT record is intended to be small
   -- 200 bytes or less.

   In cases where more data is justified (e.g., LPR printing [[BJP](https://datatracker.ietf.org/doc/html/rfc6763#ref-BJP)]),
   keeping the total size under 400 bytes should allow it to fit in a
   single 512-byte DNS message [[RFC1035](https://datatracker.ietf.org/doc/html/rfc1035)].

   In extreme cases where even this is not enough, keeping the size of
   the TXT record under 1300 bytes should allow it to fit in a single
   1500-byte Ethernet packet.

I can increase MDNS_LABEL_MAXLEN and that seems to allow long individual strings, but increasing MDNS_DOMAIN_MAXLEN just seems to make it crash.

@dwmw2
Copy link
Contributor

dwmw2 commented Sep 3, 2024

Turns out I can increase MDNS_LABEL_MAXLEN to 314, but not 315.

It's actually the size of the name[] array in struct mdns_domain which causes the crash; if I increase that alone, it crashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants