Add more MDNS functions

This commit is contained in:
2024-04-27 22:51:43 -10:00
parent ac6abf445b
commit e7c041eeb2
2 changed files with 8 additions and 1 deletions

View File

@ -680,6 +680,9 @@ e: check-esp32-builtins
check-files-dir-reverse check-files-dir-reverse
out: dacWrite out: dacWrite
out: MDNS.begin out: MDNS.begin
out: MDNS.addService
out: MDNS.setInstanceName
out: MDNS.addServiceTxt
;e ;e
e: check-esp32-bindings e: check-esp32-bindings

View File

@ -451,5 +451,9 @@ static cell_t FromIP(IPAddress ip) {
# endif # endif
# define OPTIONAL_MDNS_SUPPORT \ # define OPTIONAL_MDNS_SUPPORT \
/* mDNS */ \ /* 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 #endif