Somehow my device is remembering old connections. I’ve replaced one cellular configuration file (under
/resin-boot/system-connections/) with a new one (because I changed the SIM card) but it wouldn’t connect. Then while debugging it with
mmcli on the web terminal it showed the bearer was still using the apn from the previous connection. I tried to delete the bearer but it was stuck on a “disconnecting” state. Then I tried different mmcli commands and reboots but at the end I only managed to solve the problem by changing the name of the file and connection id string inside it, and somehow it forgot previous configurations and it then worked.
On a following step I then removed the wifi configuration file from the same directory and rebooted to see if the device would connect via cellular only but it still connects to the wifi, even though the wifi config file there anymore.
I tried grepping the resin-boot and resin-data partitions but found nothing related to my old connections in there.
So these events above make me think there is a cache somewhere linking my device with its configuration, maybe on the resin server side? If that’s true, how can I make the device “forget” those old connections?
Device: raspberrypi3 with Resin OS 2.9.6+rev1 (dev)