vintlabs / fauxmoESP

Add voice control of your ESP32 and ESP8266 devices using Amazon Alexa
MIT License
379 stars 70 forks source link

Intermittent errors: [E][WiFiUdp.cpp:183] endPacket(): could not send data: 12 #165

Open Derif opened 3 years ago

Derif commented 3 years ago

I've been working on a project to connect a RF controlled ceiling fan/light to my Alexa.

I have been struggling with getting intermittent errors [E][WiFiUdp.cpp:183] endPacket(): could not send data: 12.

I've set DEBUG_FAUXMO_VERBOSE_UDP to get more information.

Here is a copy+paste from the Terminal. `[FAUXMO] UDP packet received M-SEARCH * HTTP/1.1

HOST: 239.255.255.250:1900

ST: upnp:rootdevice

MAN: "ssdp:discover"

MX: 3

[FAUXMO] Responding to M-SEARCH request [FAUXMO] UDP response sent to 192.168.1.209:50000 HTTP/1.1 200 OK

EXT:

CACHE-CONTROL: max-age=100

LOCATION: http://192.168.1.90:80/description.xml

SERVER: FreeRTOS/6.0.5, UPnP/1.0, IpBridge/1.17.0

hue-bridgeid: 7c9ebd36f47c

ST: urn:schemas-upnp-org:device:basic:1

USN: uuid:2f402f80-da50-11e1-9b23-7c9ebd36f47c::upnp:rootdevice

[E][WiFiUdp.cpp:183] endPacket(): could not send data: 12 `

Error 12 is ENOMEM

I have three components that are using UDP. NTPClient which I had wrapped explicit logging around the endPacket() call to leave some fingerprint. It has not corresponded with any issues.

The other is Syslog. I actually swapped the Syslog implementation as this was a lot more complex to modify. I'm not able to correlate the issue coming up with any errors like I can with fauxmoESP.

I have logging of basic memory information: Every 5 minutes. [loop] Health Check: Free Heap:[255088] Max Alloc[113792]