Juerd / ESP-WiFiSettings

WiFi Manager for the ESP32 Arduino environment
Other
168 stars 35 forks source link

MQTT client, PubSubClient #20

Closed Andrew-Wasserman closed 3 years ago

Andrew-Wasserman commented 3 years ago

Hi Jeud,

Is PubSubClient compatible with ESP-WiFiSettings? If so, could you perhaps share a very basic example?

Juerd commented 3 years ago

The annoying thing with PubSubClient is that it doesn't deal well with short lived arduino's String objects because they take a pointer and don't copy the string. That's why I use the library called MQTT from https://github.com/256dpi/arduino-mqtt

Some example projects with ESP-WiFiSetting and MQTT: