Default to mqtt v3.1.1 for clients.

pull/516/head
Roger A. Light 8 years ago
parent 7096d57c3a
commit 712cbfe599

@ -123,7 +123,7 @@ void init_config(struct mosq_config *cfg)
cfg->keepalive = 60;
cfg->clean_session = true;
cfg->eol = true;
cfg->protocol_version = MQTT_PROTOCOL_V31;
cfg->protocol_version = MQTT_PROTOCOL_V311;
}
void client_config_cleanup(struct mosq_config *cfg)

@ -255,7 +255,7 @@ void print_usage(void)
printf(" -t : mqtt topic to publish to.\n");
printf(" -u : provide a username (requires MQTT 3.1 broker)\n");
printf(" -V : specify the version of the MQTT protocol to use when connecting.\n");
printf(" Can be mqttv31 or mqttv311. Defaults to mqttv31.\n");
printf(" Can be mqttv31 or mqttv311. Defaults to mqttv311.\n");
printf(" --help : display this message.\n");
printf(" --quiet : don't print error messages.\n");
printf(" --will-payload : payload for the client Will, which is sent by the broker in case of\n");

@ -447,7 +447,7 @@ void print_usage(void)
printf(" -U : unsubscribe from a topic. May be repeated.\n");
printf(" -v : print published messages verbosely.\n");
printf(" -V : specify the version of the MQTT protocol to use when connecting.\n");
printf(" Can be mqttv31 or mqttv311. Defaults to mqttv31.\n");
printf(" Can be mqttv31 or mqttv311. Defaults to mqttv311.\n");
printf(" --help : display this message.\n");
printf(" --quiet : don't print error messages.\n");
printf(" --retained-only : only handle messages with the retained flag set, and exit when the\n");

Loading…
Cancel
Save