8000 failure to start udp multicast/Alexa does not find devices · Issue #273 · vintlabs/fauxmoESP · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

failure to start udp multicast/Alexa does not find devices #273

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

Open
holgerlembke opened this issue Mar 7, 2025 · 0 comments
Open

failure to start udp multicast/Alexa does not find devices #273

holgerlembke opened this issue Mar 7, 2025 · 0 comments

Comments

@holgerlembke
Copy link

failure of beginMulticast() should at least been shown.

(Would be a "bool enable()"-feedback even better??)

void fauxmoESP::enable(bool enable) {

	if (enable == _enabled) return;
    _enabled = enable;
	if (_enabled) {
		DEBUG_MSG_FAUXMO("[FAUXMO] Enabled\n");
	} else {
		DEBUG_MSG_FAUXMO("[FAUXMO] Disabled\n");
	}

    if (_enabled) {

		// Start TCP server if internal
		if (_internal) {
			if (NULL == _server) {
				_server = new AsyncServer(_tcp_port);
				_server->onClient([this](void *s, AsyncClient* c) {
					_onTCPClient(c);
				}, 0);
			}
			_server->begin();
		}

		// UDP setup
	#ifdef ESP32
            if (!_udp.beginMulticast(FAUXMO_UDP_MULTICAST_IP, FAUXMO_UDP_MULTICAST_PORT)) {
                Serial.printf("[FAUXMO]: Multicast Failed\r\n");
            } else {
                DEBUG_MSG_FAUXMO("[FAUXMO] UDP server started\n");
            }
        #else
            if (!_udp.beginMulticast(WiFi.localIP(), FAUXMO_UDP_MULTICAST_IP, FAUXMO_UDP_MULTICAST_PORT)) {
                Serial.printf("[FAUXMO]: Multicast Failed\r\n");
            } else {
                DEBUG_MSG_FAUXMO("[FAUXMO] UDP server started\n");
            }
        #endif
	}

}

/me fishing, why my fauxmo does not work. disabeling SSDP and it works...

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

1 participant
0