-
Notifications
You must be signed in to change notification settings - Fork 16
in Adafruit_CircuitPython_ESP_ATcontrol AT+CWLAP Does not return OK #48
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
Comments
Worked with Pontus and they found:
I will add fixes to the examples with the workaround. |
Fix for Issue adafruit#48
Fixes for adafruit#48, added support for Challenger RP2040 Wifi
Fix for adafruit#48, added support for defining RGBW vs. RGB NEOPixels as a VAR, added flag for wether a display is attached, better output formatting.
Fixes for "in Adafruit_CircuitPython_ESP_ATcontrol AT+CWLAP Does not return OK #48"
It looks like Adafruit_CircuitPython_ESP_ATcontrol expects that AT+CWLAP (aka esp.scan_APs() ) to return OK.
On Challenger 2040 (and I expect other ESP) it returns the string of AP's, but no OK. Because there is no "Special Case" for AT+CWLAP, it raises (raise OKError("No OK response to " + at_cmd)).
Here's the AT Debug (MAC and AP obscured with XX:
---> AT
<--- b'\r\nOK\r\n'
---> AT+GMR
<--- b'AT version:2.1.0.0-rc1(32ea726 - Jul 16 2020 02:34:17)\r\nSDK version:v3.3-2-gb6e861a7\r\ncompile time(0993e9e):Jul 16 2020 09:03:46\r\nBin versn.0kn\nO'
---> AT+GMR
<--- b'AT version:2.1.0.0-rc1(32ea726 - Jul 16 2020 02:34:17)\r\nSDK version:v3.3-2-gb6e861a7\r\ncompile time(0993e9e):Jul 16 2020 09:03:46\r\nBin versn.(kw\nK'
---> AT+GMR
<--- b'AT version:2.1.0.0-rc1(32ea726 - Jul 16 2020 02:34:17)\r\nSDK version:v3.3-2-gb6e861a7\r\ncompile time(0993e9e):Jul 16 2020 09:03:46\r\nBin verso.0kw\nO'
---> AT+CWMODE?
<--- b'+CWMODE:1\r\n\r\nOK\r\n'
---> AT+CWLAP
<--- b'+CWLAP:(3,"NSXX",-35,"XX:f4:c6:10:XX:XX",5)\r\n+CWLAP:(3,"DTV",-65,"02:6b:XX:ae:XX:XX",11)\r\n+CWLAP:(3,"uXX",-70,8a0::,)CP3"0ea::e,\r\n\n'
---> AT+CWLAP
<--- b'+CWLAP:(3,"NSXX",-34,"XX:f4:c6:10:XX:XX",5)\r\n+CWLAP:(3,"DTV",-64,"02:6b:XX:ae:XX:XX",11)\r\n+CWLAP:(3,"uXX",-70,"82cb"1+A("7780c:,)\n\r'
---> AT+CWLAP
<--- b'+CWLAP:(3,"NSXX",-34,"XX:f4:c6:10:XX:XX",5)\r\n+CWLAP:(3,"DTV",-64,"02:6b:XX:ae:XX:XX",11)\r\n+CWa1\rWP3,,ea:::")\r\r'
Failed to get data, retrying
No OK response to AT+CWLAP
The text was updated successfully, but these errors were encountered: