Different protocols for AP/STA

lalle83
Posts: 1
Joined: Fri Mar 05, 2021 1:25 pm

Different protocols for AP/STA

Postby lalle83 » Fri Mar 05, 2021 1:32 pm

We would like to use different protocols for the AP side and the STA side of the ESP.

The reason for this is that would like two ESP32s communicate over LR but allow for other devices to connect to regular WIFI.

Router -(WIFI)- ESP32-1 -(LR)- ESP32-2 -(WIFI)- Other non LR wifi clients.

ie:
ESP32-1:
esp_wifi_set_protocol(WIFI_IF_STA, WIFI_PROTOCOL_11B | WIFI_PROTOCOL_11G | WIFI_PROTOCOL_11N));
esp_wifi_set_protocol(WIFI_IF_AP, WIFI_PROTOCOL_11B | WIFI_PROTOCOL_11G | WIFI_PROTOCOL_11N | WIFI_PROTOCOL_LR));

ESP32-2:
esp_wifi_set_protocol(WIFI_IF_STA, WIFI_PROTOCOL_11B | WIFI_PROTOCOL_11G | WIFI_PROTOCOL_11N | WIFI_PROTOCOL_LR));
esp_wifi_set_protocol(WIFI_IF_AP, WIFI_PROTOCOL_11B | WIFI_PROTOCOL_11G | WIFI_PROTOCOL_11N));

As soon as we set WIFI_IF_AP to WIFI_PROTOCOL_11B | WIFI_PROTOCOL_11G | WIFI_PROTOCOL_11N on ESP32-2 it losses the connection to the ESP32-1.

If we let both devices have WIFI_PROTOCOL_11B | WIFI_PROTOCOL_11G | WIFI_PROTOCOL_11N | WIFI_PROTOCOL_LR ESP32-2 can connect and communicate, start up AP but regular wifi clients cant connect.

Is this a limitation, if so, why? otherwise any suggestions of what im doing wrong?

Who is online

Users browsing this forum: Google [Bot] and 130 guests