Skip to content

mDNS not working with WiFi.mode(WIFI_AP_STA) on current git #8308

Closed
@z01ne

Description

@z01ne

Basic Infos

  • This issue complies with the issue POLICY doc.
  • I have read the documentation at readthedocs and the issue is not addressed there.
  • I have tested that the issue is present in current master branch (aka latest git).
  • I have searched the issue tracker for a similar issue.
  • If there is a stack dump, I have decoded it.
  • I have filled out all fields below.

Platform

  • Hardware: [ESP-12]
  • Core Version: [current]
  • Development Env: [Arduino IDE]
  • Operating System: [Windows]

Problem Description

mDNS not working with WiFi.mode(WIFI_AP_STA) on current git, but working on v2.4.7

MCVE Sketch

#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>

void setup(void) {
  Serial.begin(115200);

  WiFi.mode(WIFI_AP_STA);
  WiFi.softAP("SETUP777685", "admin678");

  MDNS.begin("TestMDNS");
  MDNS.addService("http", "tcp", 80);
  MDNS.addServiceTxt("http", "tcp", "type", "smartctrl");
  MDNS.addServiceTxt("http", "tcp", "id", "777685");
}

void loop(void) {
  MDNS.update();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions