Hi, First many thanks for your response. I'm changed 'array:string:' to 'dict:string:string:' like this:
dbus-send --system --print-reply --dest=org.moblin.connman > /profile/default/ethernet_30385544957d_cable > org.moblin.connman.Service.SetProperty string:"IPv4.Configuration" > dict:string:string:"Method","manual","Address","192.168.0.3","Netmask","255.255.255.0" Now I have this error: [root@localhost ~]# dbus-send --system --print-reply --dest=org.moblin.connman Usage: dbus-send [--help] [--system | --session | --address=ADDRESS] [--dest=NAME] [--type=TYPE] [--print-reply=(literal)] [--reply-timeout=MSEC] <destination object path> <message name> [contents ...] [root@localhost ~]# > /profile/default/ethernet_30385544957d_cable -bash: /profile/default/ethernet_30385544957d_cable: No such file or directory [root@localhost ~]# > org.moblin.connman.Service.SetProperty string:"IPv4.Configuration" -bash: string:IPv4.Configuration: command not found [root@localhost ~]# > dict:string:string:"Method","manual","Address","192.168.0.3","Netmask","255.255.255.0" [root@localhost ~]# What is exactly the syntax of this command ? Best Regards. On Fri, Sep 2, 2011 at 12:32 PM, Patrik Flykt <[email protected]>wrote: > > Hi, > > On Fri, 2011-09-02 at 11:36 +0200, Omar TAMGOUT wrote: > > # dbus-send --system --print-reply --dest=org.moblin.connman > > /profile/default/ethernet_0050b60849d5_cable > > org.moblin.connman.Service.SetProperty string:"IPv4.Configuration" > > > array:string:"Method","manual","Address","192.168.0.3","Netmask","255.255.255.0" > > The signature of SetProperty is 'sv', i.e. property name and a variant > value. The variant is a dictionary, with items given as name, value > pairs. You might be successful if you change 'array:string:' to > 'dict:string:string:' above. You can always use the python code in > test/set-ipv4-method to set static IPv4 adresses. > > Unfortunately there was still one more bug related to static IPv4 > addresses fixed after 0.77, see commit > 0e9e9bb9ce59f3919b1dec1ab0cda22b7aedce2a. > > > Cheers, > > Patrik > > > _______________________________________________ > connman mailing list > [email protected] > http://lists.connman.net/listinfo/connman > This e-mail message is intended only for the use of the intended recipient(s). The information contained therein may be confidential or privileged, and its disclosure or reproduction is strictly prohibited. If you are not the intended recipient, please return it immediately to its sender at the above address and destroy it. _______________________________________________ connman mailing list [email protected] http://lists.connman.net/listinfo/connman
