Open mtlive opened 3 years ago
Hi, sorry for the late response. It looks like NAT is not enabled. Otherwise, there should be a message similar to: (537) wifi apsta: NAT is enabled. This example only works with a custom lwip library and was made for the ESP32 using the ESP-IDF. I do not have experience with the ESP8266 using the FREERTOS SDK, so I do not know if I can help you with this issue. My guess is that at the moment the the custom lwip library is not used and therefore NAT does not work.
Thank you for your response. Based on what I understand, the custom lwip library is already merged with the ESP one and the esp32 repeater project uses that one.
Yes, as far as I can tell, you are right. I actually didn't know it was merged. Did you enable the NAT function via menuconfig? But it also could be possible that this example doesn't work anymore due to other changes. I will probably take a closer look at it.
As far as I remember I did. Please kindly ignore it if you are busy, also I might not be able to test it any time soon.
I compiled this example for ESP8266 using FREERTOS SDK which is idf style, and after successful compilation and flashing it on NodeMCU, the ESP connects to the AP and also clients can connect to the esp, but there is no internet connection on clients. i.e. clients cannot communicate with the original AP.
P.S. I needed to remove
ret == ESP_ERR_NVS_NEW_VERSION_FOUND
from https://github.com/jonask1337/esp-idf-nat-example/blob/master/main/main.c#L138 to get it compiled with the SDK.Here is the console output:
Update: I added ping code to check if the module can communicate with both sides (clients and AP), and it could ping all of them.