Merge pull request #2513 from Daedaluz/fixes

Don't reuse topic alias after reconnect.
This commit is contained in:
Roger Light 2022-04-29 22:18:52 +01:00 committed by GitHub
commit d0d8f1a83d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,6 +135,7 @@ void my_connect_callback(struct mosquitto *mosq, void *obj, int result, int flag
connack_result = result;
if(!result){
first_publish = true;
switch(cfg.pub_mode){
case MSGMODE_CMD:
case MSGMODE_FILE: