Hi Adam,

Has anyone tried returning the SSID field from a Connman Agent with success 
recently?  I thought the SSID was to be encoded an array of bytes in order to 
allow non printable characters in a hidden network, so I’ve written my agent to 
do this.

When the agent runs, a series of validations are performed at line 143 of 
connman-agent.c.  The second check fails, as it finds a DBUS_TYPE_ARRAY instead 
of a variant.  The check for an element type of DBUS_TYPE_VARIANT for the fixed 
array, also doesnt seem quite right.

I have a patch that accepts the array of bytes by tweaking these validations 
and also recursing into the array before calling the array getter.  Happy to 
submit, but wanted to check and make sure I haven’t misunderstood how we should 
be storing the SSID in the result dictionary.


Send both codes. It would be worth seeing your agent code actually.
This part has been working well until now so, a double check won't hurt :)

Tomasz
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to