adafruit / Adafruit_CircuitPython_ESP_ATcontrol

Use the ESP AT command sent to communicate with the Interwebs
MIT License
20 stars 17 forks source link

socket_connect() fails for connection TYPE_UDP #58

Closed bablokb closed 2 years ago

bablokb commented 2 years ago

With connection-type TYPE_UDP the socket_connect() method fails because the connection never reaches state STATUS_SOCKETOPEN (3) but remains in STATUS_APCONNECTED (2). Which seems logical, since UDP is connection-less.

I'm preparing a pull-request for this issue. Not insisting on STATUS_SOCKETOPEN for TYPE_UDP works fine.