EspMQTTClient
EspMQTTClient copied to clipboard
Wifi and MQTT handling for ESP8266 and ESP32
## Description of the problem From time to time when the esp restarts or reconnects to wifi i get the following message on mqtt broker when the client wants to...
## Description of the problem With Espressif esp32 2.0.17 everything works fine. esp32 3.x includes breaking changes to wifi handling https://docs.espressif.com/projects/arduino-esp32/en/latest/migration_guides/2.x_to_3.0.html When I apply the changes in PR #138 manually...
The "**EspMQTTClient**" library references objects declared by the [`WiFi.h` header](https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFi/src/WiFi.h) in the ["**esp32**" boards platform](https://github.com/espressif/arduino-esp32)'s bundled "**WiFi**" library. Previously, the "**EspMQTTClient**" library relied on its [`#include` directive](https://github.com/plapointe6/EspMQTTClient/blob/ecb7151b1719798034019f7fd12c2277c4707470/src/ESP32HTTPUpdateServer.h#L8) for the `WebServer.h`...
This commit fixes the hostname not getting applied on ESP32 since `WiFi.mode()` was called before setting the hostname. ## Explanation Taking a look at the WiFi library, you can see...
Copied this from https://github.com/plapointe6/EspMQTTClient/blob/master/examples/SimpleMQTTClient/SimpleMQTTClient.ino but it doesn't do anything. Is it supposed to do something? ``` // Origin: https://github.com/plapointe6/EspMQTTClient/blob/master/examples/SimpleMQTTClient/SimpleMQTTClient.ino // Doesn't work. #include "EspMQTTClient.h" EspMQTTClient client( "196883", "MYWIFI3520", "192.168.1.113", //...