Hello,
I am trying to use python-dbus in order to change the wifi network for my product. I was wondering if anybody had any insight on how to do this. I make the connection dictionary and fill it with my values. I then find the dbus path to my access point and my wifi connection. I then add and activate the connections. This sometimes works, but other times it does not work and drops the connection. Also if the device is disconnected, then it will lose this connection and revert back to the balena-wifi-01 connection. If anyone had any insight on what might be the problem and how I can fix this problem, that would be much appreciated thanks!
Here are some of the logs that I get from nmcli monitor wlp85s0: using connection ‘Wireless’
wlp85s0: connecting (prepare)
Networkmanager is now in the ‘connecting’ state
wlp85s0: connecting (configuring)
wlp85s0: connecting (need authentication)
wlp85s0: connecting (prepare)
wlp85s0: connecting (configuring)
Wireless: connection profile changed
wlp85s0: connecting (getting IP configuration)
resin-vpn: device removed
wlp85s0: connection failed
Networkmanager is now in the ‘connected (site only)’ state
wlp85s0: disconnected