I'm trying to set a static IP(manual, no dhcp) address for wifi network using connmanctl. I'm running angstrom linux.
I get the following:
connmanctl
connmanctl> config wifi_"HASH"_managed_psk --ipv4 manual 192.168.10.2 255.255.255.0 192.168.10.1
Error wifi_"HASH"_managed_psk: Not supported
anyone has an idea how to do it?
Instead of editing settings under /var/lib/connman/wifi_<HASH>_managed_psk/
, one should edit the config file /var/lib/connman/service-name.config instead.
e.g.
debian@beaglebone:/var/lib/connman$ sudo cat wifi.config
[service_home]
Type = wifi
Name = yyyyyyyyy
Security = wpa
Passphrase = xxxxxxxxxx
IPv4=192.168.1.4/255.255.255.0/192.168.1.254
IPv6=off
Nameservers=8.8.8.8,8.8.4.4
For details, refer to the man page connman-service.config