-
-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Callback when station connects to SoftAP on ESP8266 #48
Comments
FYI. This is what I'm reading on GPIO15 (TXD2, aka the swapped TXD0 pin from the stock 2.0 firmware)
Once I connect a station (e.g. my phone) via WiFi there's no additional data. |
@tvandergeer I do confirm that ESP8266 AT v2.0 does not output anything once new station is connected to access point hence no callback function. AT v2.0 is derived from ESP32-AT architecture and this is missing (for now) there. This is official repository, where Espressif is developing new features: https://github.com/espressif/esp-at/blob/master/docs/ESP_AT_Commands_Set.md If you report something, let me know. Cheers, Tilen |
Thanks for your quick response! I will report this in the esp-at repo. Meanwhile, do you suggest that I go back to 1.6.0 firmware and use a version of your esp_at_lib from a few months back? Then I can use my ESP-01 as well. Or should I poll for newly connected stations? Do you know of any other “problems” with the V2.0 firmware that I should take into account? |
No, use at least 1.7 as there were many performance improvements introduced and stability of firmware.
That's one way, definitely. How soon do you need to detect new station? Can it be with 10-20sec latency?
I've noticed problems with manual TCP receive data on 2.0, but this is going to be fixed in next release (confirmed & tested beta firmware already). |
Here it is: espressif/esp-at#252 |
For the last couple of days I've been working on an integration between a STMF769i-discovery and a ESP8266 WiFi module using your library.
A long story short: i'm able to successfully initialise the library and instruct the ESP8266 to setup an access point (with WPA_WPA2). Very similar to the Win32 access_point_rtos example. Once I connect my phone to the access point the callback for the event ESP_EVT_AP_CONNECTED_STA is not fired. Is this a known issue?
A bit more about my setup:
I've got several ESP8266 lying around:
I've successfully updated the Wemos and Lolin to the stock "ESP8266 IDF AT Bin V2.0" firmware from the espressif website. The ESP-01 only has 1MB, which is not large enough for the stock firmware. Building my own firmware for the smaller memory has not yet been successful. For 2MB+ I was successful.
I've put a working setup together using the stock 2.0 firmware on the NodeMCU and connecting the STM32F769i discovery with a handful of breadboard cables. I had to use the UART2 ports on the NodeMCU for UART TX/RX. Took me a while to figure that out. Only to find out later that you've (kind of) mentioned this in this post as well. Or it's actually not the UART2 port, but the swapped RTS0/CTS0 pins for UART0. Espressif acutally mentions this here and how you can swap this back when building your own firmware.
The ESP_AT_Lib is initialising correctly. This is the output from the serial console
The "ESP callback evt: N" lines are from an added
printf("ESP callback evt: %d\r\n", esp_evt_get_type(evt));
line in esp_callback_func.What I did notice it that the ESP8266 on the v2.0 firmware is no longer sending the following lines on the UART once a new station connects:
It was doing that with the older firmware. This seems to be related to my issue with the missing events.
The text was updated successfully, but these errors were encountered: