probonopd / ESP8266HueEmulator

Emulate a Philips Hue bridge running on an ESP8266 using the Arduino IDE.
MIT License
411 stars 93 forks source link

mzanetti/shine does not find emulated bridge #43

Open probonopd opened 7 years ago

probonopd commented 7 years ago

The Qt-based Linux Hue client mzanetti/shine (the only Hue client for Linux I could find) does not find the emulated bridge:

void HueBridgeConnection::onNoBridgesFound() No hue bridges found!

This is the code from discovery.cpp for discovering bridges:

void Discovery::findBridges()
{
    m_timeout->stop();
    m_reportedBridges.clear();

    QString b("M-SEARCH * HTTP/1.1\r\n"
              "HOST: 239.255.255.250:1900\r\n"
              "MAN: \"ssdp:discover\"\r\n"
              "MX: %1\r\n"
              "ST: libhue:idl\r\n");
    b.arg(DISCOVERY_TIMEOUT);

//    qDebug() << "writing datagram" << b;
    m_timeout->start(DISCOVERY_TIMEOUT * 1000);
    if (writeDatagram(b.toUtf8(), QHostAddress("239.255.255.250"), 1900) < 0) {
        emit error();
    }
}
janus-reith commented 7 years ago

Maybe #45 is related?: