Hello Community,
I’m trying to configure multiple wifi networks to my wlan0 using vintage_net.
I want understand more about assigning priority to the networks. I was able to set priority and observed that network with higher priority is selected. Sharing an example i used
VintageNet.configure("wlan0", %{
type: VintageNetWiFi,
vintage_net_wifi: %{
networks: [
%{
ssid: "TestWifi1",
psk: "Test1234567",
key_mgmt: :wpa_psk,
priority: 2
},
%{
ssid: "TestWifi2",
psk: "Test1234567@sor",
key_mgmt: :wpa_psk,
priority: 1
}
]
},
ipv4: %{method: :dhcp}
})
Referring to above example, I observed wlan0 get connected to TestWifi1
I do have few question related to this
- Is there any limit to priority
- Is there any other method to assign priority
priority
should always be integer? or it can be string?- I was not able to find any documentation related to this, if someone can point me to any documentation
Thanks & Regards