[457162] Fix mosquitto_sub not honouring --qos.
Thanks to Christoph Krey. Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=457162
This commit is contained in:
parent
cfe1156eb7
commit
b6a0b01e1e
@ -73,7 +73,6 @@ struct mosq_config {
|
||||
bool clean_session; /* sub */
|
||||
char **topics; /* sub */
|
||||
int topic_count; /* sub */
|
||||
int topic_qos; /* sub */
|
||||
bool no_retain; /* sub */
|
||||
char **filter_outs; /* sub */
|
||||
int filter_out_count; /* sub */
|
||||
|
@ -89,7 +89,7 @@ void my_connect_callback(struct mosquitto *mosq, void *obj, int result)
|
||||
|
||||
if(!result){
|
||||
for(i=0; i<cfg->topic_count; i++){
|
||||
mosquitto_subscribe(mosq, NULL, cfg->topics[i], cfg->topic_qos);
|
||||
mosquitto_subscribe(mosq, NULL, cfg->topics[i], cfg->qos);
|
||||
}
|
||||
}else{
|
||||
if(result && !cfg->quiet){
|
||||
|
Loading…
Reference in New Issue
Block a user