Skip to content

in Adafruit_CircuitPython_ESP_ATcontrol AT+CWLAP Does not return OK #48

Closed
@mperino

Description

@mperino

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions