2020-08-25 00:56:08

by Stotland, Inga

[permalink] [raw]
Subject: [PATCH BlueZ v2 3/4] tools/mesh-cfglient: Add "options" to Send/DevKeySend

This adds a new dictionary paramenter (empty by default) when
invoking Send() and DevKeySend() methods.
---
tools/mesh-cfgclient.c | 8 ++++++++
1 file changed, 8 insertions(+)

diff --git a/tools/mesh-cfgclient.c b/tools/mesh-cfgclient.c
index 59f079213..3987e3179 100644
--- a/tools/mesh-cfgclient.c
+++ b/tools/mesh-cfgclient.c
@@ -274,6 +274,14 @@ static void send_msg_setup(struct l_dbus_message *msg, void *user_data)
l_dbus_message_builder_append_basic(builder, 'b', &req->rmt);

l_dbus_message_builder_append_basic(builder, 'q', &req->idx);
+
+ /* Options */
+ l_dbus_message_builder_enter_array(builder, "{sv}");
+ l_dbus_message_builder_enter_dict(builder, "sv");
+ l_dbus_message_builder_leave_dict(builder);
+ l_dbus_message_builder_leave_array(builder);
+
+ /* Data */
append_byte_array(builder, req->data, req->len);
l_dbus_message_builder_finalize(builder);
l_dbus_message_builder_destroy(builder);
--
2.26.2