Closed rfolland closed 5 years ago
Just a guess, but the linked page says P2PDeviceConfig has type of a{sv}
so it needs to be an array of dict entries, each of which has string key and variant value. This is passed to Set
as a variant:
(flexi-streams:with-output-to-sequence (out)
(dbus:pack out
:little-endian
"v"
'(((:array (:dict-entry :string :variant))) (("GOIntent" ((:uint32) 42))))))
Very nice. That worked. Thank you very much!
I try to communicate with wpa_supplicant via dbus. I can set and get properties as long as they are not arrays of dicts of values. I noticed that dbus-send is not able to do this either.
When I try setting a value which is to be in a dict the call hangs. Perhaps I am missing something?
The dbus api for wpa_supplicant is documented here: https://w1.fi/wpa_supplicant/devel/dbus.html#dbus_p2pdevice
Of the following defuns the first three work, the last one hangs: