roema / Open-Glider-Network-Groundstation

Open Glider Network Receiver based on TTGO T-Beam ESP32 hardware.
https://ros-it.ch/open-glider-network-base-station/
GNU General Public License v3.0
1 stars 0 forks source link

multiple APs are defined #28

Closed CazYokoyama closed 2 years ago

CazYokoyama commented 2 years ago

5 APs are defined by the following code. String ogn_ssid[5]; String ogn_wpass[5];

@roema Do you expect only one AP and don't want to accept multiple APs? If so, you may define them as not an array. If you want to accept multiple APs. I'll make a patch.

roema commented 2 years ago

Hello @caz! Multiple APs are supported. You have to enter it in config.json. Only the first SSID is used in the web interface.

{
   "wifi":{
      "ssid":[
         "ssid",
         "xxxxxxx",
         "xxxxxxx",
         "xxxxxxx",
         "xxxxxxx"
      ],
      "pass":[
         "password",
         "xxxxxxx",
         "xxxxxxx",
         "xxxxxxx",
         "xxxxxxx"
      ],
      "timeout":12000
   },

On boot, the esp will test the ssid's. if no connection to one of the five is possible, he will create acces point...

CazYokoyama commented 2 years ago

@roema Correction. If you want to accept multiple APs. I'll make a patch.

If you want to accept multiple APs. I'll make a patch which simplify the code by WiFiMulti().

roema commented 2 years ago

Hey @CazYokoyama !

Yes, if you have time!

CazYokoyama commented 2 years ago

https://github.com/roema/Open-Glider-Network-Groundstation/pull/29

roema commented 2 years ago

Hi @CazYokoyama !

Thanks a lot! I will test this weekend! Kind regards, manu

roema commented 2 years ago

29 Thanks Caz