Hello,
I’m currently implementing a custom modbus script that allows me to connect to a wifi network specified via modbus.
However, i’m currently have all kinds of steps to take to set up the connection properly.
If i just enter SSID and password, it won’t work. I have to scan for networks to find the accompanying BSSID and encryption used (of which the last one is quite unclear). If i disable and enable the hotspot i use to test, the bssid changes, which i have manually scan for again.
I’m not even sure how to extract status info like wrong passwords and stuff.
Al functionality i want is available in the GUI, and i presume there is some program running in the background that manages this. But is there a way to access this functionality remotely? I can’t seem to find any reference of what is used for this.
Ideally it would just be something like:
Someprogram Connect Wlan0-4 MySSID MyPWD
And then for status information
Someprogram status
Connected
Seems counterproductive to having to recreate all of this existing functionality