From e7c041eeb217cc87a95568a8d655af1f0e4688af Mon Sep 17 00:00:00 2001 From: Sasha Kovar Date: Sat, 27 Apr 2024 22:51:43 -1000 Subject: [PATCH] Add more MDNS functions --- common/forth_namespace_tests.fs | 3 +++ esp32/builtins.h | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/common/forth_namespace_tests.fs b/common/forth_namespace_tests.fs index fb0c55b..676c73a 100644 --- a/common/forth_namespace_tests.fs +++ b/common/forth_namespace_tests.fs @@ -680,6 +680,9 @@ e: check-esp32-builtins check-files-dir-reverse out: dacWrite out: MDNS.begin + out: MDNS.addService + out: MDNS.setInstanceName + out: MDNS.addServiceTxt ;e e: check-esp32-bindings diff --git a/esp32/builtins.h b/esp32/builtins.h index e7d451c..d3fb2ab 100644 --- a/esp32/builtins.h +++ b/esp32/builtins.h @@ -451,5 +451,9 @@ static cell_t FromIP(IPAddress ip) { # endif # define OPTIONAL_MDNS_SUPPORT \ /* mDNS */ \ - X("MDNS.begin", MDNS_BEGIN, n0 = MDNS.begin(c0)) + X("MDNS.begin", MDNS_BEGIN, n0 = MDNS.begin(c0)) \ + X("MDNS.addService", MDNS_ADD_SERVICE, n0 = MDNS.addService(c2, c1, n0); NIPn(2)) \ + X("MDNS.setInstanceName", MDNS_SET_INSTANCE_NAME, MDNS.setInstanceName(c0); DROP) \ + X("MDNS.addServiceTxt", MDNS_ADD_SERVICE_TXT, MDNS.addServiceTxt(c3, c2, c1, c0); DROPn(4)) + /* alx */ #endif