Thanks. Are you able to change IPv4 configuration? I'm getting not supported error.
It doesn't work even with python test application. The service stucks in configuraton state and the method cannot be changed in anything but off. Any idea? Thanks. Francesco Bruno On Mon, Oct 12, 2015 at 12:28 PM -0700, "Adam Moore" <adam.mo...@savantsystems.com> wrote: I¹m not sure if this will do it, but in my agent¹s RequestInput method implementation, which expects a dictionary, I had to wrap it in a tuple. This might be worth a quick try: GVariant *set_property_with_me = g_variant_new_tuple(&iResVar, 1); // Now returning ({sv}) On 10/12/15, 6:30 AM, "connman on behalf of Francesco Bruno" <connman-boun...@connman.net on behalf of francobrun...@hotmail.com> wrote: >Dear All, > >I'm trying to set the Ipv4 configuration using the setProperty in the >intefarce net.connman.Service. > >The documentation says that the the data passed to the interface must be >a dict with same values as IPv4 property. >So I've created a GVariant of type a{sv} i.e. an array of dict entries >made of a string and a variance. > >Calling setProperty on services ( not connected ) do not change the >configuration as expected. > >What am I doing wrong? I suspect wrong data definition for the >configuration. > >Thanks in advance > >Below some code > > > GVariant * iResVar = NULL; > GVariant * iVarArr[4]; > iVarArr[0] = g_variant_new_dict_entry( g_variant_new_string( "Method" >), g_variant_new_variant( g_variant_new_string( "manual" ) ) ); > iVarArr[1] = g_variant_new_dict_entry( g_variant_new_string( "Address ), >g_variant_new_variant( g_variant_new_string( "127.0.0.1" ) ) ); > iVarArr[2] = g_variant_new_dict_entry( g_variant_new_string( "Netmask" >), g_variant_new_variant( g_variant_new_string( "255.255.255.0" ) ) ); > iVarArr[3] = g_variant_new_dict_entry( g_variant_new_string( "Gateway" >), g_variant_new_variant( g_variant_new_string( "1.2.3.4" ) ) ); > iResVar = g_variant_new_variant( g_variant_new_array ( ((const >GVariantType *) "{sv}"), iVarArr, 4 ) ); > > > net_connman_service_call_set_property_sync( > NET_CONNMAN_SERVICE ( pServiceProxy ), > "IPv4.Configuration", iResVal, NULL, &iError ); >_______________________________________________ >connman mailing list >connman@connman.net >https://lists.connman.net/mailman/listinfo/connman Statement of Confidentiality The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683.2500 and delete this message and its attachments, if any. _______________________________________________ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman _______________________________________________ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman