I’m using resin-wifi-connect in two devices. One is a RPI3 and the other is a RPI0W. My aplication is a node app that I must trigger a push button to connect to the captive portal (basically it spawns a node process, calling a bash script. which then runs the src/app.js with --clear=true).
It works perfectly on RPI3. When the network is different it allows me to trigger the hardware button, and, minutes later I can see the ssid of the device, connect to it and change the network. It also works when it is already connected and I need to change to another wifi network.
But on RPI0W it does not work. After I “commented” some resource-hungry parts of the code, It began to work as before: when connected, triggering the button allows to change to another network. But when the network is different (when I took the device to another place, with another network), pressing the button does not work. The RPI0W just blink the led for four times and does nothing. Neither can I see any logs, because it displays as offline in Resin dashboard.
The part of the code base that handles the wifi is equal in both devices. Already did diff on all files and inspected system-connections on /boot partition of both devices to see if was a coding mistake or a network misconfiguration of mine, but it’s equal. The only differences is that on the RPI3 the programs (main and src/app.js) are compiled using pkg, and in the src/networkManager.coffee I included a ethernet connection in the whitelist. It was needed because The RPI3 is connected to another device using a fixed IP by ethernet, which I have to guarantee to not take priority over the wifi connection (it’s done with some rules on a file on /boot/system-connections).
After all those tests and lots of research I’m suspecting that the problem is on the supervisor version of the RPI0W, which is older than the RPI3:
Host OS Version
Resin OS 2.0.6+rev3 (prod)
Resin OS 2.2.0+rev1 (prod)
Updating it might solve the problem? What do you guys think? I’m missing something here regarding resin-wifi-connect functionality or other stuff? Thanks a lot in advance!