Can't set static IP

Morning, everyone,
New here and don’t know much about much. I’ve managed to get everything flashed and locate my device using the 192.168 address (but not hasio.local), so it appears I was able to set up the WiFi configuration.

Based on some advice, I’m trying to set a static IP through an ethernet connection, and ditch the WiFi connection. However, when I change the code for the Wifi configuration according to the resinio page…nothing. In fact, I can delete the WiFi configuration file and it still connects via WiFi, ignoring the new ethernet configuration file.

What file type should we be saving these as? I’m using visual studio code as an editor.

Any ideas? Appreciate your help.

As I understand, the Pi will read the new information of the resin file and configures the Pi. If you remove the resin file, I think it just uses your old configuration? If you want to have a static ip over cable, then just hook cable on and set in your router that this ip is reserved for your Pi?

Thank you - what seems to have worked is to disconnect my cable after boot and then reconnect it. It seems to want to go straight to WiFi otherwise.

Now to figure out how to reserve that IP in my router (a Zyxel C1100Z).

In my TP LInk router it is called Address reservation. So look for something like that I guess. Good luck!

Thanks - I’ll check it out, in the meantime the WiFi has taken over again…

Advanced Setup > DHCP Reservation

Is there a difference between setting a static IP versus a DHCP reservation? I’m using Asus WRT and I only see creating a static IP

I think this explains it quite ok: https://serverfault.com/questions/544619/static-ip-vs-dhcp-reservation