mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
minimal: ss: policy2c: add more MQTT related fields
This adds 'aws_iot', 'birth_topic', and 'birth_message' on policy2c.
This commit is contained in:
parent
eda299bd71
commit
7e3125b818
1 changed files with 9 additions and 0 deletions
|
@ -574,6 +574,12 @@ int main(int argc, const char **argv)
|
|||
printf("\t\t\t.will_message = \"%s\",\n",
|
||||
pol->u.mqtt.will_message);
|
||||
|
||||
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.keep_alive)
|
||||
printf("\t\t\t.keep_alive = %u,\n",
|
||||
pol->u.mqtt.keep_alive);
|
||||
|
@ -589,6 +595,9 @@ int main(int argc, const char **argv)
|
|||
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);
|
||||
|
||||
printf("\t\t}\n\t},\n");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue