dawidchyrzynski / arduino-home-assistant

ArduinoHA allows to integrate an Arduino/ESP based device with Home Assistant using MQTT.
https://dawidchyrzynski.github.io/arduino-home-assistant/
GNU Affero General Public License v3.0
498 stars 118 forks source link

STM32Duino & STM32F4 - not working #181

Closed rozrabiak closed 8 months ago

rozrabiak commented 1 year ago

Compiles without problems, but:

    device.setName("greenhouse");
    device.setSoftwareVersion("1.0.0");
    if(hamqtt.begin(MQTT_BROKER_ADDR,"USERNAME","PASSWORD"))
    {
      Serial.println("MQTT connected");
    }

begin returns TRUE but in mosquitto logs no new device/client.

dawidchyrzynski commented 1 year ago

@rozrabiak The MQTT connection is asynchronous. Please check the documentation and ensure the MQTT address is a reachable IP address.

https://dawidchyrzynski.github.io/arduino-home-assistant/documents/library/mqtt-advanced.html https://dawidchyrzynski.github.io/arduino-home-assistant/documents/api/core/ha-mqtt.html#_CPPv4N6HAMqtt5beginEK9IPAddressK8uint16_tPKcPKc