Skip to content

[ESPmDNS] MDNSResponder does not have methods to receive TXT record keys (only values). #5132

Closed
@filimonic

Description

@filimonic

[ESPmDNS] MDNSResponder does not have methods to receive TXT record keys (only values).

MDNSResponder should have a String MDNSResponder::key(int idx, int txtIdx) identical to String MDNSResponder::txt(int idx, int txtIdx) but for keys

String MDNSResponder::key(int idx, int txtIdx) {
    mdns_result_t * result = _getResult(idx);
    if(!result){
        log_e("Result %d not found", idx);
        return "";
    }
    if (txtIdx >= result->txt_count) return "";
    return result->txt[txtIdx].key;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions