mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
minimal: ss: policy2c: update MQTT fields
This commit is contained in:
parent
21baf47aed
commit
8eb6cbf5ac
1 changed files with 12 additions and 8 deletions
|
@ -573,13 +573,24 @@ int main(int argc, const char **argv)
|
|||
if (pol->u.mqtt.will_message)
|
||||
printf("\t\t\t.will_message = \"%s\",\n",
|
||||
pol->u.mqtt.will_message);
|
||||
|
||||
if (pol->u.mqtt.will_qos)
|
||||
printf("\t\t\t.will_qos = %u,\n",
|
||||
pol->u.mqtt.will_qos);
|
||||
if (pol->u.mqtt.will_retain)
|
||||
printf("\t\t\t.will_retain = %u,\n",
|
||||
pol->u.mqtt.will_retain);
|
||||
if (pol->u.mqtt.birth_topic)
|
||||
printf("\t\t\t.birth_topic = \"%s\",\n",
|
||||
pol->u.mqtt.birth_topic);
|
||||
if (pol->u.mqtt.birth_message)
|
||||
printf("\t\t\t.birth_message = \"%s\",\n",
|
||||
pol->u.mqtt.birth_message);
|
||||
if (pol->u.mqtt.birth_qos)
|
||||
printf("\t\t\t.birth_qos = %u,\n",
|
||||
pol->u.mqtt.birth_qos);
|
||||
if (pol->u.mqtt.birth_retain)
|
||||
printf("\t\t\t.birth_retain = %u,\n",
|
||||
pol->u.mqtt.birth_retain);
|
||||
if (pol->u.mqtt.keep_alive)
|
||||
printf("\t\t\t.keep_alive = %u,\n",
|
||||
pol->u.mqtt.keep_alive);
|
||||
|
@ -589,19 +600,12 @@ int main(int argc, const char **argv)
|
|||
if (pol->u.mqtt.clean_start)
|
||||
printf("\t\t\t.clean_start = %u,\n",
|
||||
pol->u.mqtt.clean_start);
|
||||
if (pol->u.mqtt.will_qos)
|
||||
printf("\t\t\t.will_qos = %u,\n",
|
||||
pol->u.mqtt.will_qos);
|
||||
if (pol->u.mqtt.will_retain)
|
||||
printf("\t\t\t.will_retain = %u,\n",
|
||||
pol->u.mqtt.will_retain);
|
||||
if (pol->u.mqtt.aws_iot)
|
||||
printf("\t\t\t.aws_iot = %u,\n",
|
||||
pol->u.mqtt.aws_iot);
|
||||
if (pol->u.mqtt.retain)
|
||||
printf("\t\t\t.retain = %u,\n",
|
||||
pol->u.mqtt.retain);
|
||||
|
||||
printf("\t\t}\n\t},\n");
|
||||
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue