Closed KD-MM2 closed 1 year ago
I'm not a fan of the usage of a global array and rg_network_wifi.h.
Maybe you could make rg_network_get_ap_list return a const char ** pointer (ie return ap_list) instead? There are other/nicer solutions but that one wouldn't need much changes for you.
BTW thanks for including photos in your PRs, I appreciate it :).
Will re-open after new commit pushed
I giveup the AP scan because I have no idea about making 'something' to input the password. So I read on ODROID GO forum and get the idea that we will save the APs to config file and select, then load them.
This option(under
Wi-Fi options
) let us select the saved SSIDs fromwifi.json
. Present support saving up to 5 APs(this can be change by changing theMAX_AP_LIST
). Thewifi.json
will look like this:I define the variable to a different header file to get rid of
defined but not used
warning when include them insiderg_network.h
(building the emulators make the warning) After select the AP, need to reboot to apply new AP config. Now I'm looking for a way to restart the wifi after the AP is set without rebooting the OGO.