Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upCan't connect with LWT Last Will and Testament #678
Comments
This comment has been minimized.
This comment has been minimized.
Hi, solved increasing MQTT_MAX_PACKET_SIZE. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I'm trying to connect with a lwt on a ESP8266-01 but it doesen't work.
// definitions
const char* dev_hash="client";
const char* mqtt_hostname="192.168.1.10";
const char* mqtt_username="username";
const char* mqtt_password="password";
const char* mqtt_topic_lwt="/relays/lwt";
const char* lwt_message="offline";
// work
client.connect(dev_hash,mqtt_username,mqtt_password)
// doesen't work
client.connect(dev_hash,mqtt_username,mqtt_password,mqtt_topic_lwt,0,true,lwt_message)