limitium / MQTTWIFI

robust mqtt client over wifi for ESP8266 and ESP32

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MQTTWIFI - robust mqtt client over wifi for ESP8266 and ESP32

build on top of arduino mqtt client library pubsubclient

Build Status License

Features

  • Simplest usage and api ever
  • Aggressive wifi and mqtt connection sustenance

Quick start

    MQTTWIFI::MQTTWIFI mqttwifi = MQTTWIFI::MQTTWIFI("wifiname", "password", "broker.mqttdashboard.com", 1883, "ConnectionID");
    void setup()
    {
        mqttwifi.init();
        mqttwifi.subscribe("topic1", [](const char *payload) {
            Serial.printf("Rcv from topic1, %s", payload);
        });
    }

    void loop()
    {
        mqttwifi.loop();
        mqttwifi.publish("topic1", "msg!");
}

Exmaple

  • Basic - basic=full usage example

Dependencies

Limitations

License

MQTTWIFI is open-source software licensed under the MIT license

About

robust mqtt client over wifi for ESP8266 and ESP32


Languages

Language:C++ 100.0%