I would like to know how to save my edited connection using nmcli from the app container.
I use my wlan0 (static hotspot running flask) to setup wlan1 (internet).
It successfully changes the connection and I get the devices goes online.
If I reboot the device the device has still got the old values inside
/resin-boot/system-connections/resin-wifi-01. I know there is a persist or save flag, but it should be
true by default. Does it have something to do with permissions?
@app.route('/wifi_save', methods=['POST']) def wifi_save(): # edit using nmcli ssid = request.form['ssid'] password = request.form['password'] os.system("./nmcli connection modify resin-wifi-01 wifi.ssid "+ssid+" wifi-sec.psk "+password+") os.system("./nmcli connection down resin-wifi-01") os.system("./nmcli connection up resin-wifi-01") return "Saved: SSID =>"+ssid+" password =>"+password