I have been struggling for some time now to manually create an entry for connman. My aim is to store the settings for a specific Wifi so that the Wifi is known to connman and it can connect.
This is what I have tried:
I created a new directory in /data/var/lib/connman with the name
wifi_<hash>_managed_psk (hash for example 5cc56XXXXXXX_4261XXXXXXX)
and created a file called settings in it. The following content is written into the file settings:
[service_wifi_5cc56XXXXXXX_4261XXXXXXX_managed_psk] Type=wifi Name=MyWifi Passphrase=MyPassword
Actually, connman should now recognize the Wifi without rebooting.
Unfortunately, this does not result in the check mark appearing in front of the Wifi in the Remote Console. Also via SSH, when running connmanctl scan wifi and then connmanctl services, no asterisk appears in front of the (should-know) Wifi.
The situation is different when I connect to the Wifi manually via the Remote Console. A file with the same name and the same content is created (plus some more lines like IPv4.method=dhcp).
What is the reason that connman ignores my information about the Wifi and still says that it does not know the Wifi?