Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect with LWT Last Will and Testament #678

Open
Zavy86 opened this issue Nov 11, 2019 · 1 comment

Comments

@Zavy86
Copy link

@Zavy86 Zavy86 commented Nov 11, 2019

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)

@Zavy86

This comment has been minimized.

Copy link
Author

@Zavy86 Zavy86 commented Nov 11, 2019

Hi, solved increasing MQTT_MAX_PACKET_SIZE.
It is also possibile to increase without modify the PuSubClient.h file? like a parameter?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.