Closed AxelLin closed 3 years ago
@david-cermak Any chance to review this PR? (It's a bug fix for us, otherwise the mqtt can not connect to exosite due to password without username.)
@AxelLin Sorry, I've missed this PR. Thanks for contributing!
PS: Will correct the spec number before merge.
Some cloud server (e.g. exosite) takes empty username with password. Current esp-mqtt implementation does not allow such setting, fix it.
Current users may already consider strlen(info->username) == 0 case as don't set username. To avoid breaking existing behavior, this patch only set zero length username when password is set.
Signed-off-by: Axel Lin axel.lin@ingics.com